mirror of
https://gitlab.crans.org/mediatek/med.git
synced 2025-07-06 06:03:54 +02:00
Django upgrade
This commit is contained in:
@ -44,6 +44,12 @@ class UserCreationAdminForm(ModelForm):
|
||||
from the given information.
|
||||
"""
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
super().__init__(*args, **kwargs)
|
||||
self.fields['email'].required = True
|
||||
self.fields['first_name'].required = True
|
||||
self.fields['last_name'].required = True
|
||||
|
||||
class Meta:
|
||||
model = User
|
||||
fields = ("username", "email", "first_name", "last_name", "address",
|
||||
|
Reference in New Issue
Block a user