Add from __future__ import unicode_literals, issue #37
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django import forms
|
||||
from django.contrib.auth.models import User, Group
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
@@ -10,8 +12,8 @@ class UserForm(forms.ModelForm):
|
||||
|
||||
|
||||
class PasswordForm(forms.Form):
|
||||
new_password_1 = forms.CharField(label=_(u'New password'), widget=forms.PasswordInput())
|
||||
new_password_2 = forms.CharField(label=_(u'Confirm password'), widget=forms.PasswordInput())
|
||||
new_password_1 = forms.CharField(label=_('New password'), widget=forms.PasswordInput())
|
||||
new_password_2 = forms.CharField(label=_('Confirm password'), widget=forms.PasswordInput())
|
||||
|
||||
|
||||
class GroupForm(forms.ModelForm):
|
||||
|
||||
Reference in New Issue
Block a user