1
- # Generated by Django 3.2.14 on 2022-07-19 20 :29
1
+ # Generated by Django 3.2.14 on 2022-07-22 14 :29
2
2
3
- import django_enum .fields
4
- import django_enum .tests .app1 .enums
5
- import django_enum .tests .app1 .models
6
3
from django .db import migrations , models
4
+ import django_enum .fields
7
5
8
6
9
7
class Migration (migrations .Migration ):
@@ -18,19 +16,21 @@ class Migration(migrations.Migration):
18
16
name = 'EnumTester' ,
19
17
fields = [
20
18
('id' , models .BigAutoField (auto_created = True , primary_key = True , serialize = False , verbose_name = 'ID' )),
21
- ('small_pos_int' , django_enum .fields .EnumPositiveSmallIntegerField (blank = True , choices = [(0 , 'Value 1' ), (2 , 'Value 2' ), (32767 , 'Value 32767' )], db_index = True , default = None , enum = django_enum . tests . app1 . enums . SmallPosIntEnum , null = True )),
22
- ('small_int' , django_enum .fields .EnumSmallIntegerField (blank = True , choices = [(- 32768 , 'Value -32768' ), (0 , 'Value 0' ), (1 , 'Value 1' ), (2 , 'Value 2' ), (32767 , 'Value 32767' )], db_index = True , default = 32767 , enum = django_enum . tests . app1 . enums . SmallIntEnum )),
23
- ('pos_int' , django_enum .fields .EnumPositiveIntegerField (blank = True , choices = [(0 , 'Value 0' ), (1 , 'Value 1' ), (2 , 'Value 2' ), (2147483647 , 'Value 2147483647' )], db_index = True , default = 2147483647 , enum = django_enum . tests . app1 . enums . PosIntEnum )),
24
- ('int' , django_enum .fields .EnumIntegerField (blank = True , choices = [(- 2147483648 , 'Value -2147483648' ), (0 , 'Value 0' ), (1 , 'Value 1' ), (2 , 'Value 2' ), (2147483647 , 'Value 2147483647' )], db_index = True , enum = django_enum . tests . app1 . enums . IntEnum , null = True )),
25
- ('big_pos_int' , django_enum .fields .EnumPositiveBigIntegerField (blank = True , choices = [(0 , 'Value 0' ), (1 , 'Value 1' ), (2 , 'Value 2' ), (2147483648 , 'Value 2147483647' )], db_index = True , default = None , enum = django_enum . tests . app1 . enums . BigPosIntEnum , null = True )),
26
- ('big_int' , django_enum .fields .EnumBigIntegerField (blank = True , choices = [(- 2147483649 , 'Value -2147483649' ), (1 , 'Value 1' ), (2 , 'Value 2' ), (2147483648 , 'Value 2147483647' )], db_index = True , default = - 2147483649 , enum = django_enum . tests . app1 . enums . BigIntEnum )),
27
- ('constant' , django_enum .fields .EnumFloatField (blank = True , choices = [(3.141592653589793 , 'Pi' ), (2.71828 , "Euler's Number" ), (1.618033988749895 , 'Golden Ratio' )], db_index = True , default = None , enum = django_enum . tests . app1 . enums . Constants , null = True )),
28
- ('text' , django_enum .fields .EnumCharField (blank = True , choices = [('V1' , 'Value1' ), ('V22' , 'Value2' ), ('V333' , 'Value3' ), ('D' , 'Default' )], db_index = True , default = None , enum = django_enum . tests . app1 . enums . TextEnum , max_length = 4 , null = True )),
19
+ ('small_pos_int' , django_enum .fields .EnumPositiveSmallIntegerField (blank = True , choices = [(0 , 'Value 1' ), (2 , 'Value 2' ), (32767 , 'Value 32767' )], db_index = True , default = None , null = True )),
20
+ ('small_int' , django_enum .fields .EnumSmallIntegerField (blank = True , choices = [(- 32768 , 'Value -32768' ), (0 , 'Value 0' ), (1 , 'Value 1' ), (2 , 'Value 2' ), (32767 , 'Value 32767' )], db_index = True , default = 32767 )),
21
+ ('pos_int' , django_enum .fields .EnumPositiveIntegerField (blank = True , choices = [(0 , 'Value 0' ), (1 , 'Value 1' ), (2 , 'Value 2' ), (2147483647 , 'Value 2147483647' )], db_index = True , default = 2147483647 )),
22
+ ('int' , django_enum .fields .EnumIntegerField (blank = True , choices = [(- 2147483648 , 'Value -2147483648' ), (0 , 'Value 0' ), (1 , 'Value 1' ), (2 , 'Value 2' ), (2147483647 , 'Value 2147483647' )], db_index = True , null = True )),
23
+ ('big_pos_int' , django_enum .fields .EnumPositiveBigIntegerField (blank = True , choices = [(0 , 'Value 0' ), (1 , 'Value 1' ), (2 , 'Value 2' ), (2147483648 , 'Value 2147483647' )], db_index = True , default = None , null = True )),
24
+ ('big_int' , django_enum .fields .EnumBigIntegerField (blank = True , choices = [(- 2147483649 , 'Value -2147483649' ), (1 , 'Value 1' ), (2 , 'Value 2' ), (2147483648 , 'Value 2147483647' )], db_index = True , default = - 2147483649 )),
25
+ ('constant' , django_enum .fields .EnumFloatField (blank = True , choices = [(3.141592653589793 , 'Pi' ), (2.71828 , "Euler's Number" ), (1.618033988749895 , 'Golden Ratio' )], db_index = True , default = None , null = True )),
26
+ ('text' , django_enum .fields .EnumCharField (blank = True , choices = [('V1' , 'Value1' ), ('V22' , 'Value2' ), ('V333' , 'Value3' ), ('D' , 'Default' )], db_index = True , default = None , max_length = 4 , null = True )),
29
27
('int_choice' , models .IntegerField (blank = True , choices = [(1 , 'One' ), (2 , 'Two' ), (3 , 'Three' )], default = 1 )),
30
28
('char_choice' , models .CharField (blank = True , choices = [('A' , 'First' ), ('B' , 'Second' ), ('C' , 'Third' )], default = 'A' , max_length = 1 )),
31
29
('int_field' , models .IntegerField (blank = True , default = 1 )),
32
30
('float_field' , models .FloatField (blank = True , default = 1.5 )),
33
31
('char_field' , models .CharField (blank = True , default = 'A' , max_length = 1 )),
32
+ ('dj_int_enum' , django_enum .fields .EnumPositiveSmallIntegerField (choices = [(1 , 'One' ), (2 , 'Two' ), (3 , 'Three' )], default = 1 )),
33
+ ('dj_text_enum' , django_enum .fields .EnumCharField (choices = [('A' , 'Label A' ), ('B' , 'Label B' ), ('C' , 'Label C' )], default = 'A' , max_length = 1 )),
34
34
],
35
35
options = {
36
36
'ordering' : ('id' ,),
@@ -40,9 +40,9 @@ class Migration(migrations.Migration):
40
40
name = 'MyModel' ,
41
41
fields = [
42
42
('id' , models .BigAutoField (auto_created = True , primary_key = True , serialize = False , verbose_name = 'ID' )),
43
- ('txt_enum' , django_enum .fields .EnumCharField (blank = True , choices = [('V0' , 'Value 0' ), ('V1' , 'Value 1' ), ('V2' , 'Value 2' )], enum = django_enum . tests . app1 . models . MyModel . TextEnum , max_length = 2 , null = True )),
44
- ('int_enum' , django_enum .fields .EnumPositiveSmallIntegerField (choices = [(1 , 'One' ), (2 , 'Two' ), (3 , 'Three' )], enum = django_enum . tests . app1 . models . MyModel . IntEnum )),
45
- ('color' , django_enum .fields .EnumCharField (choices = [('R' , 'Red' ), ('G' , 'Green' ), ('B' , 'Blue' )], enum = django_enum . tests . app1 . models . MyModel . Color , max_length = 1 )),
43
+ ('txt_enum' , django_enum .fields .EnumCharField (blank = True , choices = [('V0' , 'Value 0' ), ('V1' , 'Value 1' ), ('V2' , 'Value 2' )], max_length = 2 , null = True )),
44
+ ('int_enum' , django_enum .fields .EnumPositiveSmallIntegerField (choices = [(1 , 'One' ), (2 , 'Two' ), (3 , 'Three' )])),
45
+ ('color' , django_enum .fields .EnumCharField (choices = [('R' , 'Red' ), ('G' , 'Green' ), ('B' , 'Blue' )], max_length = 1 )),
46
46
],
47
47
),
48
48
]
0 commit comments