#34596: subclassing models.TextChoices
-----------------------------------------+------------------------
               Reporter:  piscvau        |          Owner:  nobody
                   Type:  Uncategorized  |         Status:  new
              Component:  Documentation  |        Version:  4.2
               Severity:  Normal         |       Keywords:
           Triage Stage:  Unreviewed     |      Has patch:  0
    Needs documentation:  0              |    Needs tests:  0
Patch needs improvement:  0              |  Easy pickings:  0
                  UI/UX:  0              |
-----------------------------------------+------------------------
 Would it be possible to clarify in the documentation whether it is
 possible or not to subclass one of the  enums.Choices classes.
 The purpose would be for example to add a third attribute to the class.
 Here the question was raised one year and a half ago and no response is
 yet available.
 https://stackoverflow.com/questions/69091496/best-way-to-add-third-
 attribute-to-django-models-choices
 If it is possible, a hint on how to do it would be helpful (rewrite a
 __new__).
 If it is not possible may be a hint on the best way would be
 helpful(define a custom field?)

-- 
Ticket URL: <https://code.djangoproject.com/ticket/34596>
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/0107018851d6e581-1416b6a8-89ef-4018-a3d8-0ebb4f5128c2-000000%40eu-central-1.amazonses.com.

Reply via email to