Skip to content

Commit

Permalink
Merge pull request #131 from TrangPham/patch-1
Browse files Browse the repository at this point in the history
Update Admin to show model
  • Loading branch information
asfaltboy authored Oct 31, 2020
2 parents 3fc6b96 + 5bddb8a commit 714a451
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion advanced_filters/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,9 @@ class AdvancedFilterAdmin(admin.ModelAdmin):
form = AdvancedFilterForm
extra = 0

list_display = ('title', 'created_by', )
list_display = ('title', 'model', 'created_by', )
readonly_fields = ('created_by', 'model', 'created_at', )
list_filter = ('model', )

def has_add_permission(self, obj=None):
return False
Expand Down

0 comments on commit 714a451

Please sign in to comment.