Ajout de la progression détaillée des objets 'Item' (jeux, figurines, etc.)
This commit is contained in:
@ -63,7 +63,7 @@ class GameAdmin(admin.ModelAdmin):
|
||||
fieldsets = [(_('Game Information'), {
|
||||
'fields': [('name', 'collection')]
|
||||
}), (_('Progress'), {
|
||||
'fields': [('status'), ('note')]
|
||||
'fields': [('status'), ('achievement', 'achievement_max'), ('note')]
|
||||
}), ('', {
|
||||
'fields': [('playing'), ('unplayed'), ('wish')]
|
||||
})]
|
||||
|
29
collection/games/migrations/0012_add_achievements.py
Normal file
29
collection/games/migrations/0012_add_achievements.py
Normal file
@ -0,0 +1,29 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
# Generated by Django 1.11.9 on 2018-01-21 11:06
|
||||
from __future__ import unicode_literals
|
||||
|
||||
import datetime
|
||||
from django.db import migrations, models
|
||||
import django.db.models.deletion
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('games', '0011_auto_20180116_1756'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='game',
|
||||
name='achievement_max',
|
||||
field=models.PositiveIntegerField(blank=True, null=True,
|
||||
verbose_name='out of'),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='game',
|
||||
name='achievement',
|
||||
field=models.PositiveIntegerField(blank=True, null=True,
|
||||
verbose_name='achievement'),
|
||||
),
|
||||
]
|
Reference in New Issue
Block a user