#30774: Migrations uses value of enum object instead of its name.
-------------------------------------+-------------------------------------
Reporter: oasl | Owner: Hasan
| Ramezani
Type: Bug | Status: assigned
Component: Migrations | Version: master
Severity: Normal | Resolution:
Keywords: Enum, Migrations | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by felixxm):
You cannot use a string representation of `self.value` i.e.
`'EnumClass.GOOD'`, IMO we should use a `name` property:
{{{
return "%s.%s[%r]" % (module, enum_class.__name__, self.value.name),
imports
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/30774#comment:7>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/062.f762b52b5c658c53aba06be058a8f1cf%40djangoproject.com.