Ajout du champ "shortname" sur les collections
This commit is contained in:
@ -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
|
||||
|
23
collection/games/migrations/0010_auto_20180115_1730.py
Normal file
23
collection/games/migrations/0010_auto_20180115_1730.py
Normal 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'), ),
|
||||
]
|
Reference in New Issue
Block a user