2019-11-01 06:03:57 +00:00
# Generated by Django 2.2.6 on 2019-10-31 08:31
2016-09-22 17:16:41 +00:00
from django . db import migrations , models
import multiselectfield . db . fields
class Migration ( migrations . Migration ) :
initial = True
dependencies = [
]
operations = [
migrations . CreateModel (
name = ' Book ' ,
fields = [
( ' id ' , models . AutoField ( auto_created = True , primary_key = True , serialize = False , verbose_name = ' ID ' ) ) ,
( ' title ' , models . CharField ( max_length = 200 ) ) ,
( ' categories ' , multiselectfield . db . fields . MultiSelectField ( choices = [ ( 1 , ' Handbooks and manuals by discipline ' ) , ( 2 , ' Business books ' ) , ( 3 , ' Books of literary criticism ' ) , ( 4 , ' Books about literary theory ' ) , ( 5 , ' Books about literature ' ) ] , default = 1 , max_length = 9 ) ) ,
2016-09-22 20:12:56 +00:00
( ' tags ' , multiselectfield . db . fields . MultiSelectField ( blank = True , choices = [ ( ' sex ' , ' Sex ' ) , ( ' work ' , ' Work ' ) , ( ' happy ' , ' Happy ' ) , ( ' food ' , ' Food ' ) , ( ' field ' , ' Field ' ) , ( ' boring ' , ' Boring ' ) , ( ' interesting ' , ' Interesting ' ) , ( ' huge ' , ' Huge ' ) , ( ' nice ' , ' Nice ' ) ] , max_length = 54 , null = True ) ) ,
( ' published_in ' , multiselectfield . db . fields . MultiSelectField ( choices = [ ( ' Canada - Provinces ' , ( ( ' AB ' , ' Alberta ' ) , ( ' BC ' , ' British Columbia ' ) ) ) , ( ' USA - States ' , ( ( ' AK ' , ' Alaska ' ) , ( ' AL ' , ' Alabama ' ) , ( ' AZ ' , ' Arizona ' ) ) ) ] , max_length = 2 , verbose_name = ' Province or State ' ) ) ,
2019-11-01 06:03:57 +00:00
( ' chapters ' , multiselectfield . db . fields . MultiSelectField ( choices = [ ( 1 , ' Chapter I ' ) , ( 2 , ' Chapter II ' ) ] , default = 1 , max_length = 3 ) ) ,
2016-09-22 17:16:41 +00:00
] ,
) ,
]