Therefore, I don't think this is a backend problem. I think the JavaScript
wasn't updated with all necesary changes from v.4.1. Or maybe there is a
problem with the template engine?!?
Finally, a minimalist project for error reproduction:
[https://github.com/aDramaQueen/django-many-to-many-error]
--
Ticket URL: <https://code.djangoproject.com/ticket/33904>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* status: new => closed
* resolution: => fixed
Comment:
Thanks for the report! It was a regression in
fe7dbef5867c577995f0fc849d8dfdb8f2e6bbfa fixed in
0756c61f2ada56e4ae625589099c0141a77737eb (Django 4.1.1).
--
Ticket URL: <https://code.djangoproject.com/ticket/33904#comment:1>
* cc: Carsten Fuchs (added)
--
Ticket URL: <https://code.djangoproject.com/ticket/33904#comment:2>
* status: closed => new
* resolution: fixed =>
Comment:
As discussed at https://groups.google.com/g/django-
developers/c/3W3eV6qyMeA/m/7_pif1UOAgAJ, the issue does not seem to be
fixed: As demonstrated by the OP at https://github.com/aDramaQueen/django-
many-to-many-error, new objects that use a many-to-many relationship with
horizontal oder vertical filters cannot be created (error: "This field is
required" even if a value is given).
--
Ticket URL: <https://code.djangoproject.com/ticket/33904#comment:3>
Comment (by Carlton Gibson):
Hmmm. I've just downloaded the project and testing on `main`,
`stable/4.1.x`, the `4.1` tag, and `stable/4.0.x` I'm not seeing the
behaviour. 🤔
Under normal circumstances I'd close as `worksforme`, but since you just
re-opened it Carsten, presumably you are seeing it... 😬
Can you dig a little?
(Browser cache maybe? 🤔)
(I did a video but it's too big to upload to trac.)
--
Ticket URL: <https://code.djangoproject.com/ticket/33904#comment:4>
* status: new => closed
* resolution: => fixed
Comment:
I also saw this issue and confirmed that it's fixed by the commit in
comment 1. If you still see the problem `admin/js/change_form.js` may be
cached by your browser.
--
Ticket URL: <https://code.djangoproject.com/ticket/33904#comment:5>
Comment (by Carsten Fuchs):
Ok, many thanks for everyone's help! Sorry for the noise!
--
Ticket URL: <https://code.djangoproject.com/ticket/33904#comment:6>