Show games in Admin menu

This commit is contained in:
Yohann D'ANELLO 2021-11-02 12:30:44 +01:00
parent 079ade9bbb
commit a01d480dd2
Signed by: ynerant
GPG Key ID: 3A75C55819C8CF85
1 changed files with 1 additions and 0 deletions

View File

@ -161,6 +161,7 @@ class GameAdmin(VersionAdmin, PolymorphicChildModelAdmin):
'players_max', 'comment') 'players_max', 'comment')
search_fields = ('name', 'owner__username', 'duration', 'comment') search_fields = ('name', 'owner__username', 'duration', 'comment')
autocomplete_fields = ('owner',) autocomplete_fields = ('owner',)
show_in_index = True
admin_site.register(Author, AuthorAdmin) admin_site.register(Author, AuthorAdmin)