Commit d41bc047 authored by Christopher Løkken's avatar Christopher Løkken
Browse files

Merge branch 'master' into urlrefactor

parents e9e0aadd 7b1096cb
Pipeline #171218 passed with stages
in 1 minute and 8 seconds
......@@ -4,18 +4,19 @@ from .models import Offer, AthleteFile
from django.contrib.auth import get_user_model
from .forms import CustomUserChangeForm, CustomUserCreationForm
# Register your models here.
class CustomUserAdmin(UserAdmin):
add_form = CustomUserCreationForm
form = CustomUserChangeForm
model = get_user_model()
# list_display = UserAdmin.list_display + ('coach',)
fieldsets = UserAdmin.fieldsets + ((None, {"fields": ("coach",)}),)
add_fieldsets = UserAdmin.add_fieldsets + ((None, {"fields": ("coach",)}),)
# Custom user admin, CustomUserAdmin)
# Other features
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment