forked from DGNum/gestioCOF
Use get_user_model
This commit is contained in:
parent
a1ead1bfc8
commit
5f963d5451
1 changed files with 3 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
||||||
from django import forms
|
from django import forms
|
||||||
|
from django.contrib.auth import get_user_model
|
||||||
from django.contrib.auth.forms import AuthenticationForm
|
from django.contrib.auth.forms import AuthenticationForm
|
||||||
from django.contrib.auth.models import User
|
|
||||||
from django.forms.formsets import BaseFormSet, formset_factory
|
from django.forms.formsets import BaseFormSet, formset_factory
|
||||||
from django.forms.widgets import CheckboxSelectMultiple, RadioSelect
|
from django.forms.widgets import CheckboxSelectMultiple, RadioSelect
|
||||||
from django.utils.translation import ugettext_lazy as _
|
from django.utils.translation import ugettext_lazy as _
|
||||||
|
@ -10,6 +10,8 @@ from bda.models import Spectacle
|
||||||
from gestioncof.models import CalendarSubscription, Club, CofProfile, EventCommentValue
|
from gestioncof.models import CalendarSubscription, Club, CofProfile, EventCommentValue
|
||||||
from gestioncof.widgets import TriStateCheckbox
|
from gestioncof.widgets import TriStateCheckbox
|
||||||
|
|
||||||
|
User = get_user_model()
|
||||||
|
|
||||||
|
|
||||||
class ExteAuthenticationForm(AuthenticationForm):
|
class ExteAuthenticationForm(AuthenticationForm):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in a new issue