Changes between Initial Version and Version 1 of Ticket #30774, comment 3


Ignore:
Timestamp:
Sep 14, 2019, 12:23:56 PM (5 years ago)
Author:
oasl

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #30774, comment 3

    initial v1  
    1818then run: python manage.py makemigrations
    1919
    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.
     20In 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)
    2121run: python manage.py migrate
    2222
Back to Top