Commit 2900c425e8a5a4f6dd59b9a1205d912d2ce7caff
Exists in
master
and in
3 other branches
Merge branch 'refactoring' of https://github.com/amadeusproject/amadeuslms into refactoring
Showing
1 changed file
with
10 additions
and
0 deletions
Show diff stats
users/admin.py
@@ -0,0 +1,10 @@ | @@ -0,0 +1,10 @@ | ||
1 | +from django.contrib import admin | ||
2 | +from .models import User | ||
3 | +from .forms import UserForm | ||
4 | + | ||
5 | +class UserAdmin(admin.ModelAdmin): | ||
6 | + list_display = ['username', 'social_name', 'email', 'is_staff', 'is_active'] | ||
7 | + search_fields = ['username', 'social_name', 'email'] | ||
8 | + form = UserForm | ||
9 | + | ||
10 | +admin.site.register(User, UserAdmin) | ||
0 | \ No newline at end of file | 11 | \ No newline at end of file |