Changes between Initial Version and Version 1 of Ticket #30774, comment 3
- Timestamp:
- Sep 14, 2019, 12:23:56 PM (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #30774, comment 3
initial v1 18 18 then run: python manage.py makemigrations 19 19 20 In the generated migration file, you will notice that the default value of the field is set to: EnumClass('Value'), so it calls the enum object by its value not it is constant name.20 In the generated migration file, you will notice that the default value of the field is set to: EnumClass('Value'), so it calls the enum object by its translatable value not it is constant name. (This is exactly the BUG, you can think of it without even continue) 21 21 run: python manage.py migrate 22 22