Ayant besoin de connaître la fortune de chaque figurine, j'ai ajouté 'coins'
This commit is contained in:
parent
110add5b0e
commit
090376f1e3
@ -7,8 +7,8 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: 0.1\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2018-01-21 11:36+0000\n"
|
||||
"PO-Revision-Date: 2018-01-21 12:36+0100\n"
|
||||
"POT-Creation-Date: 2018-01-21 14:41+0000\n"
|
||||
"PO-Revision-Date: 2018-01-21 15:42+0100\n"
|
||||
"Last-Translator: \n"
|
||||
"Language-Team: \n"
|
||||
"Language: fr\n"
|
||||
@ -85,15 +85,19 @@ msgstr "envie de l'avoir ?"
|
||||
msgid "You need this 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"
|
||||
msgstr "Dénomination de la figurine"
|
||||
|
||||
#: figurines/models.py:62
|
||||
#: figurines/models.py:65
|
||||
msgid "Becoming set"
|
||||
msgstr "Collection d'où cela provient"
|
||||
|
||||
#: figurines/models.py:63
|
||||
#: figurines/models.py:66
|
||||
msgid "Figurine progression"
|
||||
msgstr "Progression de la figurine"
|
||||
|
||||
|
@ -5,7 +5,7 @@ from figurines.models import Set
|
||||
|
||||
class FigurineInline(admin.TabularInline):
|
||||
model = Figurine
|
||||
fields = ('name', 'kind', 'achievement', 'achievement_max',
|
||||
fields = ('name', 'kind', 'achievement', 'achievement_max', 'coins',
|
||||
'wish')
|
||||
extra = 2
|
||||
|
||||
|
22
collection/figurines/migrations/0006_add_coins.py
Normal file
22
collection/figurines/migrations/0006_add_coins.py
Normal 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'),
|
||||
),
|
||||
]
|
@ -53,6 +53,10 @@ class Figurine(Item):
|
||||
verbose_name=_('wish?'),
|
||||
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:
|
||||
ordering = ('name',)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user