(self, commit=True)
| 20 | fields = ['username', 'groups', 'password1', 'password2', ] |
| 21 | |
| 22 | def save(self, commit=True): |
| 23 | user = super().save(commit=False) |
| 24 | if commit: |
| 25 | user.save() |
| 26 | self.save_m2m() # Save the many-to-many field data |
| 27 | return user |
| 28 | |
| 29 | |
| 30 |
no outgoing calls