#34711: form.has_changed() is always True for IntegerChoices Enum Model Field
------------------------+--------------------------------------
     Reporter:  GHPS    |                    Owner:  nobody
         Type:  Bug     |                   Status:  closed
    Component:  Forms   |                  Version:  4.2
     Severity:  Normal  |               Resolution:  needsinfo
     Keywords:          |             Triage Stage:  Unreviewed
    Has patch:  0       |      Needs documentation:  0
  Needs tests:  0       |  Patch needs improvement:  0
Easy pickings:  0       |                    UI/UX:  0
------------------------+--------------------------------------

Comment (by GHPS):

 As suggested I completely started from scratch[1].
 The project is as barebone as it can be.

 But the problem still remains - form.has_changed() is alway True for
 IntegerChoice enums. Even for different browsers (Firefox/Chrome) or
 platforms (Linux/Android)

 The sample code is ready to run: The database has three entries which
 can be viewed under local URL /test/[1,2,3]/. Pressing the save button
 will always trigger the message that the eAsset field has been changed.

 1: https://github.com/GHPS/Django-Enum-Bug

-- 
Ticket URL: <https://code.djangoproject.com/ticket/34711#comment:3>
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/010701895a0d4ea3-dd2a838c-8b39-4ef6-a6f0-335ab8fad65d-000000%40eu-central-1.amazonses.com.

Reply via email to