Ayant besoin de connaître la fortune de chaque figurine, j'ai ajouté 'coins'

This commit is contained in:
Olivier DOSSMANN 2018-01-21 15:47:33 +01:00
parent 110add5b0e
commit 090376f1e3
4 changed files with 36 additions and 6 deletions

View File

@ -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-21 11:36+0000\n" "POT-Creation-Date: 2018-01-21 14:41+0000\n"
"PO-Revision-Date: 2018-01-21 12:36+0100\n" "PO-Revision-Date: 2018-01-21 15:42+0100\n"
"Last-Translator: \n" "Last-Translator: \n"
"Language-Team: \n" "Language-Team: \n"
"Language: fr\n" "Language: fr\n"
@ -85,15 +85,19 @@ msgstr "envie de l'avoir ?"
msgid "You need this figurine." msgid "You need this figurine."
msgstr "Vous avez besoin de cette figurine." msgstr "Vous avez besoin de cette figurine."
#: figurines/models.py:61 #: figurines/models.py:57
msgid "coins"
msgstr "monnaie"
#: figurines/models.py:64
msgid "Figurine denomination" msgid "Figurine denomination"
msgstr "Dénomination de la figurine" msgstr "Dénomination de la figurine"
#: figurines/models.py:62 #: figurines/models.py:65
msgid "Becoming set" msgid "Becoming set"
msgstr "Collection d'où cela provient" msgstr "Collection d'où cela provient"
#: figurines/models.py:63 #: figurines/models.py:66
msgid "Figurine progression" msgid "Figurine progression"
msgstr "Progression de la figurine" msgstr "Progression de la figurine"

View File

@ -5,7 +5,7 @@ from figurines.models import Set
class FigurineInline(admin.TabularInline): class FigurineInline(admin.TabularInline):
model = Figurine model = Figurine
fields = ('name', 'kind', 'achievement', 'achievement_max', fields = ('name', 'kind', 'achievement', 'achievement_max', 'coins',
'wish') 'wish')
extra = 2 extra = 2

View File

@ -0,0 +1,22 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.9 on 2018-01-21 14:40
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('figurines', '0005_add_achievements'),
]
operations = [
migrations.AddField(
model_name='figurine',
name='coins',
field=models.PositiveIntegerField(default=0, null=True, blank=True,
verbose_name='coins'),
),
]

View File

@ -53,6 +53,10 @@ class Figurine(Item):
verbose_name=_('wish?'), verbose_name=_('wish?'),
help_text=_('You need this figurine.')) help_text=_('You need this figurine.'))
# How money does your figurine have?
coins = models.PositiveIntegerField(default=0, null=True, blank=True,
verbose_name=_('coins'))
class Meta: class Meta:
ordering = ('name',) ordering = ('name',)