2015-03-17 19:03:51 +01:00
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
2017-05-23 10:30:18 +02:00
from django . db import migrations , models
2015-03-17 19:03:51 +01:00
class Migration ( migrations . Migration ) :
dependencies = [
]
operations = [
migrations . CreateModel (
name = ' Partition ' ,
fields = [
2017-05-23 10:30:18 +02:00
( ' id ' , models . AutoField ( auto_created = True , primary_key = True , verbose_name = ' ID ' , serialize = False ) ) ,
2015-03-17 19:03:51 +01:00
( ' nom ' , models . CharField ( max_length = 100 ) ) ,
( ' part ' , models . FileField ( upload_to = ' partitions/ ' ) ) ,
] ,
2017-05-23 10:30:18 +02:00
) ,
migrations . CreateModel (
name = ' PartitionSet ' ,
fields = [
( ' id ' , models . AutoField ( auto_created = True , primary_key = True , verbose_name = ' ID ' , serialize = False ) ) ,
( ' nom ' , models . CharField ( max_length = 100 ) ) ,
( ' auteur ' , models . CharField ( max_length = 100 ) ) ,
( ' category ' , models . CharField ( max_length = 8 , choices = [ ( ' active ' , ' Actif ' ) , ( ' incoming ' , ' À venir ' ) , ( ' old ' , ' Archive ' ) , ( ' optional ' , ' Optionnel ' ) ] , default = ' incoming ' , verbose_name = ' Types de partitions ' ) ) ,
( ' infos ' , models . TextField ( blank = True , verbose_name = ' Infos utiles ' , null = True ) ) ,
] ,
) ,
migrations . AddField (
model_name = ' partition ' ,
name = ' morceau ' ,
field = models . ForeignKey ( to = ' partitions.PartitionSet ' ) ,
2015-03-17 19:03:51 +01:00
) ,
]