Added extra filtering options for Project model/admin
parent
de393db7c4
commit
598a97c997
|
|
@ -12,3 +12,4 @@ atlassian-*
|
|||
__pycache__
|
||||
.venv/
|
||||
build
|
||||
.vscode
|
||||
|
|
|
|||
|
|
@ -85,8 +85,8 @@ class ProjectAdmin(SortableAdmin):
|
|||
CreditInline, NoteInline, GenericNoteInline,
|
||||
NonSortableCreditInline, NonSortableNoteInline
|
||||
]
|
||||
list_display = ['__str__', 'category']
|
||||
list_filter = ('category__title',)
|
||||
list_display = ['__str__', 'category', 'isApproved',]
|
||||
list_filter = ('category__title', 'isApproved',)
|
||||
after_sorting_js_callback_name = 'afterSortCallback'
|
||||
search_fields = ['title']
|
||||
sortable_change_list_template = 'adminsortable/custom_change_list.html'
|
||||
|
|
|
|||
Loading…
Reference in New Issue