Commit fbf424a93b428c64e0ae4710e1ad10ee129f716c
Committed by
Sergio Oliveira
1 parent
a1c591e4
Exists in
master
and in
39 other branches
Fixed imports and reference to form
[skip ci]
Showing
2 changed files
with
5 additions
and
2 deletions
Show diff stats
colab/accounts/admin.py
... | ... | @@ -3,9 +3,10 @@ from django import forms |
3 | 3 | from django.contrib import admin |
4 | 4 | from django.contrib.auth import get_user_model |
5 | 5 | from django.contrib.auth.admin import UserAdmin |
6 | -from django.contrib.auth.forms import UserCreationForm | |
7 | 6 | from django.utils.translation import ugettext_lazy as _ |
8 | 7 | |
8 | +from .forms import UserCreationForm | |
9 | + | |
9 | 10 | User = get_user_model() |
10 | 11 | |
11 | 12 | |
... | ... | @@ -39,7 +40,7 @@ class MyUserAdmin(UserAdmin): |
39 | 40 | |
40 | 41 | fieldsets = ( |
41 | 42 | (None, {'fields': ('username', 'email', 'password')}), |
42 | - (_('Personal info'), {'fields': ('first_name', 'last_name', 'twitter', | |
43 | + (_('Personal info'), {'fields': ('first_name', 'last_name', 'twitter', | |
43 | 44 | 'facebook', 'google_talk', 'webpage', |
44 | 45 | )}), |
45 | 46 | (_('Permissions'), {'fields': ('is_active', 'is_staff', 'is_superuser', | ... | ... |
colab/accounts/forms.py
... | ... | @@ -2,6 +2,8 @@ |
2 | 2 | |
3 | 3 | from django import forms |
4 | 4 | from django.contrib.auth import get_user_model |
5 | +from django.contrib.auth.forms import OrderedDict, ReadOnlyPasswordHashField, \ | |
6 | + default_token_generator | |
5 | 7 | from django.utils.translation import ugettext_lazy as _ |
6 | 8 | |
7 | 9 | from conversejs.models import XMPPAccount | ... | ... |