Commit 13dec2c0683a02953f7c3da57a66ce314a97fd3a
1 parent
1ea6cb0c
Exists in
master
and in
3 other branches
Adding users module to django admin
Showing
1 changed file
with
10 additions
and
0 deletions
Show diff stats
users/admin.py
... | ... | @@ -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 | 11 | \ No newline at end of file | ... | ... |