Ajout du champ "shortname" sur les collections

This commit is contained in:
2018-01-15 18:55:03 +01:00
parent 50f0361b91
commit a6dcad77d9
7 changed files with 81 additions and 19 deletions

View File

@ -2,43 +2,54 @@
pk: 1
fields:
name: Steam
shortname: Steam
- model: games.platform
pk: 2
fields:
name: Game Boy
shortname: Game Boy
- model: games.platform
pk: 3
fields:
name: Nintendo 3DS
shortname: 3DS
- model: games.platform
pk: 4
fields:
name: Nintendo Switch
shortname: Switch
- model: games.platform
pk: 5
fields:
name: PC
shortname: PC
- model: games.platform
pk: 6
fields:
name: Genesis / Mega Drive
shortname: GEN
- model: games.platform
pk: 7
fields:
name: Nintendo Entertainment System
shortname: NES
- model: games.platform
pk: 8
fields:
name: PlayStation
shortname: PS
- model: games.platform
pk: 9
fields:
name: PlayStation 3
shortname: PS3
- model: games.platform
pk: 10
fields:
name: PlayStation 4
shortname: PS4
- model: games.platform
pk: 11
fields:
name: Wii
shortname: Wii

View File

@ -0,0 +1,23 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.9 on 2018-01-15 17:30
from __future__ import unicode_literals
from django.db import migrations
from django.db import models
class Migration(migrations.Migration):
dependencies = [
('games', '0009_add_help_text_for_documentation'),
]
operations = [
migrations.AddField(
model_name='platform',
name='shortname',
field=models.CharField(
default='TODO: Add shortname',
max_length=30,
verbose_name='shortname'), ),
]