Liste des jeux : ajout d'une colonne pour le nom de la plateforme
This commit is contained in:
parent
f2d7a2dfd8
commit
c70673b8b1
@ -7,7 +7,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: 0.1\n"
|
"Project-Id-Version: 0.1\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2018-01-15 17:37+0000\n"
|
"POT-Creation-Date: 2018-01-15 20:10+0000\n"
|
||||||
"PO-Revision-Date: 2017-09-16 17:16+0200\n"
|
"PO-Revision-Date: 2017-09-16 17:16+0200\n"
|
||||||
"Last-Translator: Olivier DOSSMANN <git@dossmann.net>\n"
|
"Last-Translator: Olivier DOSSMANN <git@dossmann.net>\n"
|
||||||
"Language-Team: \n"
|
"Language-Team: \n"
|
||||||
|
@ -7,8 +7,8 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: 0.1\n"
|
"Project-Id-Version: 0.1\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2018-01-15 17:37+0000\n"
|
"POT-Creation-Date: 2018-01-15 20:10+0000\n"
|
||||||
"PO-Revision-Date: 2018-01-15 18:38+0100\n"
|
"PO-Revision-Date: 2018-01-15 21:10+0100\n"
|
||||||
"Last-Translator: \n"
|
"Last-Translator: \n"
|
||||||
"Language-Team: \n"
|
"Language-Team: \n"
|
||||||
"Language: fr\n"
|
"Language: fr\n"
|
||||||
@ -17,11 +17,11 @@ msgstr ""
|
|||||||
"Content-Transfer-Encoding: 8bit\n"
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
"X-Generator: Poedit 2.0.5\n"
|
"X-Generator: Poedit 2.0.5\n"
|
||||||
|
|
||||||
#: core/models.py:7 core/models.py:29
|
#: core/models.py:8 core/models.py:28
|
||||||
msgid "name"
|
msgid "name"
|
||||||
msgstr "nom"
|
msgstr "nom"
|
||||||
|
|
||||||
#: core/models.py:8
|
#: core/models.py:9
|
||||||
msgid "shortname"
|
msgid "shortname"
|
||||||
msgstr "nom court"
|
msgstr "nom court"
|
||||||
|
|
||||||
@ -29,11 +29,11 @@ msgstr "nom court"
|
|||||||
msgid "New"
|
msgid "New"
|
||||||
msgstr "Nouveau"
|
msgstr "Nouveau"
|
||||||
|
|
||||||
#: core/models.py:49 core/models.py:81
|
#: core/models.py:48 core/models.py:79
|
||||||
msgid "status"
|
msgid "status"
|
||||||
msgstr "état"
|
msgstr "état"
|
||||||
|
|
||||||
#: core/models.py:66
|
#: core/models.py:65
|
||||||
msgid "date"
|
msgid "date"
|
||||||
msgstr "date"
|
msgstr "date"
|
||||||
|
|
||||||
@ -69,11 +69,11 @@ msgstr "Collection d'où cela provient"
|
|||||||
msgid "Figurine progression"
|
msgid "Figurine progression"
|
||||||
msgstr "Progression de la figurine"
|
msgstr "Progression de la figurine"
|
||||||
|
|
||||||
#: games/admin.py:11
|
#: games/admin.py:17
|
||||||
msgid "state"
|
msgid "state"
|
||||||
msgstr "état"
|
msgstr "état"
|
||||||
|
|
||||||
#: games/admin.py:39
|
#: games/admin.py:40
|
||||||
msgid "Game Information"
|
msgid "Game Information"
|
||||||
msgstr "Information du jeu"
|
msgstr "Information du jeu"
|
||||||
|
|
||||||
@ -81,6 +81,10 @@ msgstr "Information du jeu"
|
|||||||
msgid "Progress"
|
msgid "Progress"
|
||||||
msgstr "Progression"
|
msgstr "Progression"
|
||||||
|
|
||||||
|
#: games/admin.py:56
|
||||||
|
msgid "Platform"
|
||||||
|
msgstr "Plateforme"
|
||||||
|
|
||||||
#: games/models.py:15 games/models.py:29
|
#: games/models.py:15 games/models.py:29
|
||||||
msgid "platform"
|
msgid "platform"
|
||||||
msgstr "plateforme"
|
msgstr "plateforme"
|
||||||
|
@ -34,7 +34,7 @@ class StatusFilter(admin.SimpleListFilter):
|
|||||||
|
|
||||||
|
|
||||||
class GameAdmin(admin.ModelAdmin):
|
class GameAdmin(admin.ModelAdmin):
|
||||||
list_display = ('name', 'playing', 'status', 'wish')
|
list_display = ('name', 'get_platform', 'playing', 'status', 'wish')
|
||||||
list_filter = [StatusFilter, 'playing', 'wish']
|
list_filter = [StatusFilter, 'playing', 'wish']
|
||||||
search_fields = ('name', )
|
search_fields = ('name', )
|
||||||
fieldsets = [(_('Game Information'), {
|
fieldsets = [(_('Game Information'), {
|
||||||
@ -47,6 +47,15 @@ class GameAdmin(admin.ModelAdmin):
|
|||||||
|
|
||||||
form = GameForm
|
form = GameForm
|
||||||
|
|
||||||
|
def get_platform(self, obj):
|
||||||
|
"""
|
||||||
|
Display platform shortname
|
||||||
|
"""
|
||||||
|
return obj.collection.shortname
|
||||||
|
|
||||||
|
get_platform.short_description = _('Platform')
|
||||||
|
get_platform.admin_order_field = 'collection__shortname'
|
||||||
|
|
||||||
|
|
||||||
class TimelineAdmin(admin.ModelAdmin):
|
class TimelineAdmin(admin.ModelAdmin):
|
||||||
list_display = ('date', 'status', 'item')
|
list_display = ('date', 'status', 'item')
|
||||||
|
Loading…
Reference in New Issue
Block a user