#30902: The value of a TextChoices/IntegerChoices field has a differing type
-------------------------------------+-------------------------------------
     Reporter:  NyanKiyoshi          |                    Owner:  nobody
         Type:  Bug                  |                   Status:  closed
    Component:  Database layer       |                  Version:  3.0
  (models, ORM)                      |
     Severity:  Release blocker      |               Resolution:  fixed
     Keywords:  enum                 |             Triage Stage:  Accepted
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  1
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Mariusz Felisiak <felisiak.mariusz@…>):

 In [changeset:"8740ff334ae3e001514c42ac1fb63a5e4cfa5cd1" 8740ff33]:
 {{{
 #!CommitTicketReference repository=""
 revision="8740ff334ae3e001514c42ac1fb63a5e4cfa5cd1"
 [3.0.x] Fixed #30902 -- Added __str__() for model choice enums.

 Allows expected behavior when cast to str, also matching behaviour of
 created instances with those fetched from the DB.

 Thanks to Simon Charette, Nick Pope, and Shai Berger for reviews.

 Backport of dbcd7b064e7278614f29fc45468d461e263d4da7 from master
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/30902#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/069.494c9864595ea00cdb57b4f1a8ac280f%40djangoproject.com.

Reply via email to