category full name
This commit is contained in:
parent
ec8e289ff8
commit
14728c8513
3 changed files with 51 additions and 3 deletions
|
@ -63,7 +63,7 @@ class EquipmentAttributeValueInline(admin.TabularInline):
|
|||
|
||||
|
||||
class CategoryAdmin(admin.ModelAdmin):
|
||||
list_display = ['name', 'parent']
|
||||
list_display = ['name', 'parent', "full_name"]
|
||||
ordering = ['name', 'parent']
|
||||
|
||||
|
||||
|
@ -73,7 +73,7 @@ class EquipmentAttributeAdmin(admin.ModelAdmin):
|
|||
|
||||
|
||||
class EquipmentAdmin(admin.ModelAdmin):
|
||||
readonly_fields = ['added_at', 'modified_at']
|
||||
readonly_fields = ['full_category', 'added_at', 'modified_at',]
|
||||
list_display = ['name', 'stock', 'owner', 'category', 'modified_at']
|
||||
ordering = ['name', 'owner', 'category']
|
||||
inlines = [EquipmentAttributeValueInline,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue