kopia lustrzana https://github.com/jedie/PyInventory
enhance admin
rodzic
28c23b613e
commit
a9b0f08c64
|
@ -17,9 +17,11 @@ class ItemModelAdmin(BaseUserAdmin):
|
||||||
date_hierarchy = 'create_dt'
|
date_hierarchy = 'create_dt'
|
||||||
list_display = (
|
list_display = (
|
||||||
'kind', 'producer',
|
'kind', 'producer',
|
||||||
'parent', 'name',
|
'name',
|
||||||
'location', 'received_date', 'update_dt'
|
'parent', 'location',
|
||||||
|
'received_date', 'update_dt'
|
||||||
)
|
)
|
||||||
|
ordering = ('kind', 'producer', 'name')
|
||||||
list_display_links = ('name',)
|
list_display_links = ('name',)
|
||||||
list_filter = ('kind', 'location', 'producer', 'tags')
|
list_filter = ('kind', 'location', 'producer', 'tags')
|
||||||
search_fields = ('name', 'description')
|
search_fields = ('name', 'description')
|
||||||
|
|
Ładowanie…
Reference in New Issue