Skip to content

Commit 1d2ab54

Browse files
authored
Merge pull request #2191 from codalab/userAdmin_djangoInterface
User Admin upgrades (easier user creation + password change)
1 parent 5675d33 commit 1d2ab54

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/apps/profiles/admin.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import json
55
import csv
66
from django.http import HttpResponse
7+
from django.contrib.auth.admin import UserAdmin
78

89

910
# General class used to make custom filter
@@ -67,7 +68,7 @@ def export_as_json(modeladmin, request, queryset):
6768
return HttpResponse(json.dumps(email_list), content_type="application/json")
6869

6970

70-
class UserExpansion(admin.ModelAdmin):
71+
class UserExpansion(UserAdmin):
7172
# The following two lines are needed for Django-su:
7273
change_form_template = "admin/auth/user/change_form.html"
7374
change_list_template = "admin/auth/user/change_list.html"

0 commit comments

Comments
 (0)