lava-server: update device-types command

'manage device-types' was assuming N-N relationship between DeviceType and
Alias objects. This patch aligns implementation with 1-N model that is
currently used.

Signed-off-by: Milosz Wasilewski <milosz.wasilewski@linaro.org>
15 jobs for <span class="ref-name">alias_mgmt_command</span> in 8 minutes and 51 seconds (queued for 2 seconds)
Status Job ID Name Coverage
  Test
passed #49448
amd64
dispatcher-debian-10

00:02:50

passed #49446
amd64
dispatcher-debian-9

00:03:09

passed #49449
amd64
server-debian-10

00:01:55

passed #49447
amd64
server-debian-9

00:02:13

 
  Analyze
passed #49451
amd64
black

00:00:30

passed #49453
amd64
code_quality

00:00:23

passed #49452
amd64
codestyle

00:00:34

passed #49455
amd64
job-schema

00:00:40

passed #49454
amd64
pylint

00:02:18

passed #49450
amd64-dind allowed to fail
sast

00:01:26

 
  Build
passed #49458
amd64
amd64/pkg-debian-10

00:01:15

passed #49457
amd64
amd64/pkg-debian-9

00:01:39

passed #49456
amd64
doc

00:01:11

 
  Docker
passed #49459
amd64-dind
amd64/lava-dispatcher

00:00:41

passed #49460
amd64-dind
amd64/lava-server

00:01:43