Re: Calling save_m2m() in UserCreationForm.save()

2022-11-27 Thread Mark Gensler
d be to file a ticket and work on a PR. The > first step would be to add a test case reproducing the issue. > > On Wed, Nov 23, 2022 at 4:59 PM Mark Gensler wrote: > >> Hello all! >> >> I noticed that when calling contrib.auth.forms.UserCreationForm.save(), >>

Calling save_m2m() in UserCreationForm.save()

2022-11-23 Thread Mark Gensler
Hello all! I noticed that when calling contrib.auth.forms.UserCreationForm.save(), self.save_m2m() is not called when commit=True. This caused an issue in one of my projects which uses a custom User model with ManyToMany fields. Is this something that should be changed? I saw in the docs [1]

Passing initial data to model formsets - a suggested improvement

2018-09-06 Thread Mark Gensler
Initial data for modelformsets is treated in an odd way, which was outlined and discussed in the issues below https://code.djangoproject.com/ticket/16995#comment:1 https://code.djangoproject.com/ticket/29739 (submitted by me) In summary, if the initial data provided to BaseModelFormSet.__init__