admin modified
This commit is contained in:
parent
57e3feb414
commit
573df9e3f7
1 changed files with 3 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue