Things added, WIP
Some checks are pending
SonarQube Scan / SonarQube Trigger (push) Waiting to run
Build containers when image tags change / build-if-image-changed (., web, containers, main container, git.baumann.gr/adebaumann/labhelper) (push) Successful in 7s
Build containers when image tags change / build-if-image-changed (data-loader, loader, initContainers, init-container, git.baumann.gr/adebaumann/labhelper-data-loader) (push) Successful in 7s
Some checks are pending
SonarQube Scan / SonarQube Trigger (push) Waiting to run
Build containers when image tags change / build-if-image-changed (., web, containers, main container, git.baumann.gr/adebaumann/labhelper) (push) Successful in 7s
Build containers when image tags change / build-if-image-changed (data-loader, loader, initContainers, init-container, git.baumann.gr/adebaumann/labhelper-data-loader) (push) Successful in 7s
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
from django.contrib import admin
|
||||
|
||||
from .models import Box, BoxType
|
||||
from .models import Box, BoxType, Thing, ThingType
|
||||
|
||||
|
||||
@admin.register(BoxType)
|
||||
@@ -18,3 +18,20 @@ class BoxAdmin(admin.ModelAdmin):
|
||||
list_display = ('id', 'box_type')
|
||||
list_filter = ('box_type',)
|
||||
search_fields = ('id',)
|
||||
|
||||
|
||||
@admin.register(ThingType)
|
||||
class ThingTypeAdmin(admin.ModelAdmin):
|
||||
"""Admin configuration for ThingType model."""
|
||||
|
||||
list_display = ('name',)
|
||||
search_fields = ('name',)
|
||||
|
||||
|
||||
@admin.register(Thing)
|
||||
class ThingAdmin(admin.ModelAdmin):
|
||||
"""Admin configuration for Thing model."""
|
||||
|
||||
list_display = ('name', 'thing_type', 'box')
|
||||
list_filter = ('thing_type', 'box')
|
||||
search_fields = ('name', 'description')
|
||||
|
||||
Reference in New Issue
Block a user