Opened 2 years ago

Closed 2 years ago

#34097 closed Bug (duplicate)

when i create objects in admin page, it is not posted to server that is selection of ModelMultipleChoiceField with FilteredSelectMultiple widget

Reported by: Byoungjun Chung Owned by: nobody
Component: contrib.admin Version: 4.1
Severity: Normal Keywords: ModelMultipleChoiceField, FilteredSelectMultiple, admin
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

I customized form for UserCreate and UserChange based on UserCreationForm and UserAdminForm

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.

Change History (1)

comment:1 by Tim Graham, 2 years ago

Resolution: duplicate
Status: newclosed

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.

Note: See TracTickets for help on using tickets.
Back to Top