from django import forms from django.utils.translation import ugettext as _ class LoginForm(forms.Form): username = forms.CharField( label=_("Username"), widget=forms.TextInput() ) password = forms.CharField( label=_("Password"), widget=forms.PasswordInput(), help_text=_("Password used to authenticate") )