Ajout du champ "shortname" sur les collections
This commit is contained in:
@ -2,15 +2,19 @@
|
||||
pk: 1
|
||||
fields:
|
||||
name: Amiibo
|
||||
shortname: Amiibo
|
||||
- model: figurines.set
|
||||
pk: 2
|
||||
fields:
|
||||
name: Disney Infinity
|
||||
shortname: Infinity
|
||||
- model: figurines.set
|
||||
pk: 3
|
||||
fields:
|
||||
name: Lego Dimensions
|
||||
shortname: LD
|
||||
- model: figurines.set
|
||||
pk: 4
|
||||
fields:
|
||||
name: Skylanders
|
||||
name: "Skylanders Serie 1: Spyro's adventure"
|
||||
shortname: Skylanders
|
||||
|
23
collection/figurines/migrations/0002_auto_20180115_1730.py
Normal file
23
collection/figurines/migrations/0002_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 = [
|
||||
('figurines', '0001_initial'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='set',
|
||||
name='shortname',
|
||||
field=models.CharField(
|
||||
default='TODO: Add shortname',
|
||||
max_length=30,
|
||||
verbose_name='shortname'), ),
|
||||
]
|
Reference in New Issue
Block a user