because My User Model have a many-to-many field.
for the field, I use a ModelMultipleChoiceField with
FilteredSelectMultiple widget.
I works fine for view and change about already created user.
but, when i create new user with the field, selection is not saved.
I cannot find a solution about this with googling.
finally, i found this is a bug after 4.1 version
when i change django version to 4.0.8, it work normally.
this can be reproduced in django default user group creating with several
permission.
4.1, permission is not saved.
4.0.8, permission is saved.
--
Ticket URL: <https://code.djangoproject.com/ticket/34097>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* status: new => closed
* resolution: => duplicate
Comment:
This looks like a duplicate of #33893, fixed in Django 4.1.1. If you're
using that version or later, be sure that an old version of
`admin/js/change_form.js` isn't cached by your browser.
--
Ticket URL: <https://code.djangoproject.com/ticket/34097#comment:1>