You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
416 B
14 lines
416 B
from django.contrib.auth.forms import UserCreationForm, UserChangeForm
|
|
from .models import CustomUser
|
|
|
|
class CustomUserCreationForm(UserCreationForm):
|
|
|
|
class Meta:
|
|
model = CustomUser
|
|
fields = UserCreationForm.Meta.fields + ("umpire_code", )
|
|
|
|
class CustomUserChangeForm(UserChangeForm):
|
|
|
|
class Meta:
|
|
model = CustomUser
|
|
fields = UserCreationForm.Meta.fields + ("umpire_code", )
|
|
|