admin modified

This commit is contained in:
Qwann 2018-08-09 18:34:36 +02:00
parent 57e3feb414
commit 573df9e3f7

View file

@ -76,6 +76,8 @@ class EquipmentAttributeAdmin(admin.ModelAdmin):
class EquipmentAdmin(admin.ModelAdmin):
save_as_continue = True
save_on_top = True
readonly_fields = ['full_category_p',
'added_at',
'modified_at',
@ -115,6 +117,7 @@ class EquipmentAdmin(admin.ModelAdmin):
EquipmentLostExtraInline,
EquipmentRevisionExtraInline]
search_fields = ['name', 'description',]
list_filter = ['owner', 'category' ]
admin_site.register(Equipment, EquipmentAdmin)