Autocomplete fields and cleaned_data

classic Classic list List threaded Threaded
2 messages Options
mes
Reply | Threaded
Open this post in threaded view
|

Autocomplete fields and cleaned_data

mes
I'm currently looking at a bug in our application, caused by autocomplete_fields on a ModelAdmin. It seemingly removes the field from self.cleaned_data, which means we can no longer validate it.

I can reproduce this by removing/adding the field from/to autocomplete_fields and resubmitting the form after re-rendering. This is a vanilla manytomany relation.

So now I wonder if this is an implementation bug in Django, with us (something else I'm not considering) or documentation bug, as none of this is mentioned in the documentation on either concepts.

I'm happy to file a bug report and classify it according to the above if it is a bug. Otherwise, I'll dive down the rabbit hole.
--

Backend Developer

Mobile: +49 (0)160 179 6874
eMail: [hidden email]
Web: www.3yourmind.com




The information that has been provided should be regarded as confidential within the context of our non-disclosure agreement.

 

3YOURMIND GmbH

Bismarckstraße 10-12 | 10625 Berlin | Germany

VAT ID - USt-IdNr. gemäß § 27 a Umsatzsteuergesetz: DE296555110

Company with its registered seat in - Sitz der Gesellschaft: Berlin

Register court - Registergericht: Amtsgericht Charlottenburg (Berlin)

--
You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/CAF5kSxRx92R0S9kdtZrZANmhCjomsWy-zp85%3DO%2Bw_WicB259BA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Autocomplete fields and cleaned_data

Florian Apolloner


On Monday, May 13, 2019 at 8:25:56 PM UTC+2, Melvyn Sopacua | 3YOURMIND wrote:
It seemingly removes the field from self.cleaned_data, which means we can no longer validate it.

If that is the case it is a bug I'd say.

--
You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/c7fe8e55-a39d-4dee-a13f-b3a683397f9c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.