HF RL Explorer

UserCreationForm should save data from ManyToMany form fields Description

UserCreationForm should save data from ManyToMany form fields Description: a task in Lego-RL-SWE-Bench-Verified (Harbor dataset). When using contrib.auth.forms.UserCreationForm with a custom User model which has ManyToManyField fields, the data in all related form fields (e.g. a…

The task

When using contrib.auth.forms.UserCreationForm with a custom User model which has ManyToManyField fields, the data in all related form fields (e.g. a ModelMultipleChoiceField) is not saved. This is because unlike its parent class django.forms.ModelForm, UserCreationForm.save(commit=True) omits to call…

Part of Lego-X/Lego-RL-SWE-Bench-Verified.