1
0
mirror of https://gitlab.crans.org/mediatek/med.git synced 2024-11-27 10:53:10 +00:00

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

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)