#30014: Initialising disabled ModelChoiceField yields 'Select a valid choice'-error despite initialised option being valid -------------------------------------+------------------------------------- Reporter: thoha | Owner: nobody Type: Bug | Status: new Component: Forms | Version: 2.1 Severity: Normal | Resolution: Keywords: forms, disabled | Triage Stage: field, error, to_field_name | Unreviewed Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------------+-------------------------------------
Comment (by Carlton Gibson): Hi Etienne. Thanks for the test case. It's not quite working as expected I think... I get exactly the same failure with `disabled` `True` or `False`. (i.e. changing it doesn't make the test pass.) Can you double check and adjust? (I'll leave it open for the moment.) -- Ticket URL: <https://code.djangoproject.com/ticket/30014#comment:8> 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 django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/063.4f805d925d61e52fbd6a1e1942176195%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.