feat / AEB-63 create get objects route
This commit is contained in:
@@ -75,19 +75,17 @@ class SensorAdmin(admin.ModelAdmin):
|
||||
@admin.register(Object)
|
||||
class ObjectAdmin(admin.ModelAdmin):
|
||||
list_display = ('title', 'description', 'image', 'address', 'floors', 'area')
|
||||
list_filter = ('title', 'description', 'image', 'address', 'floors', 'area')
|
||||
list_filter = ('title', 'description', 'address', 'floors', 'area')
|
||||
search_fields = ('title', 'description', 'image', 'address', 'floors', 'area')
|
||||
list_per_page = 10
|
||||
list_max_show_all = 100
|
||||
list_editable = ('image', 'address', 'floors', 'area')
|
||||
list_display_links = ('title',)
|
||||
|
||||
@admin.register(Zone)
|
||||
class ZoneAdmin(admin.ModelAdmin):
|
||||
list_display = ('object', 'name') # Removed sensors from list_display
|
||||
list_filter = ('object', 'name') # Removed sensors from list_filter
|
||||
search_fields = ('object', 'name') # Removed sensors from search_fields
|
||||
list_display = ('object', 'name')
|
||||
list_filter = ('object', 'name')
|
||||
search_fields = ('object', 'name')
|
||||
list_per_page = 10
|
||||
list_max_show_all = 100
|
||||
list_editable = ('name',) # Changed to tuple with name only
|
||||
list_display_links = ('object',)
|
||||
Reference in New Issue
Block a user