Changes between Initial Version and Version 1 of Ticket #33916


Ignore:
Timestamp:
Aug 11, 2022, 11:16:50 AM (2 years ago)
Author:
Willem Van Onsem
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #33916 – Description

    initial v1  
    11If we work with a field:
    22
    3 ```
     3
     4{{{
    45regex_flags = models.IntegerField(default=re.UNICODE | re.IGNORECASE)
    5 ```
     6}}}
    67
    78This is turned into a migration with:
    89
    9 ```
     10{{{
    1011default=re.RegexFlag[None]
    11 ```
     12}}}
    1213
    1314This is due to the fact that the `EnumSerializer` aims to work with the `.name` of the item, but if there is no single item for the given value, then there is no such name.
Back to Top