Skip to content

Commit

Permalink
Adds Authors snippet to admin menu
Browse files Browse the repository at this point in the history
  • Loading branch information
mrharpo committed Nov 6, 2023
1 parent fec890b commit 5a80633
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions authors/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ class AuthorAdmin(SnippetViewSet):
add_to_settings_menu = False
exclude_from_explorer = False
search_fields = ('name', 'bio')
add_to_admin_menu = True


register_snippet(Author, viewset=AuthorAdmin)

0 comments on commit 5a80633

Please sign in to comment.