Added extra filtering options for Project model/admin

master
Brandon Taylor 2019-02-11 10:15:39 -05:00
parent de393db7c4
commit 598a97c997
2 changed files with 3 additions and 2 deletions

1
.gitignore vendored
View File

@ -12,3 +12,4 @@ atlassian-*
__pycache__ __pycache__
.venv/ .venv/
build build
.vscode

View File

@ -85,8 +85,8 @@ class ProjectAdmin(SortableAdmin):
CreditInline, NoteInline, GenericNoteInline, CreditInline, NoteInline, GenericNoteInline,
NonSortableCreditInline, NonSortableNoteInline NonSortableCreditInline, NonSortableNoteInline
] ]
list_display = ['__str__', 'category'] list_display = ['__str__', 'category', 'isApproved',]
list_filter = ('category__title',) list_filter = ('category__title', 'isApproved',)
after_sorting_js_callback_name = 'afterSortCallback' after_sorting_js_callback_name = 'afterSortCallback'
search_fields = ['title'] search_fields = ['title']
sortable_change_list_template = 'adminsortable/custom_change_list.html' sortable_change_list_template = 'adminsortable/custom_change_list.html'