~widelands-dev/widelands-website/trunk

« back to all changes in this revision

Viewing changes to wlggz/forms.py

  • Committer: kaputtnik
  • Date: 2019-06-14 18:40:56 UTC
  • mfrom: (532.1.31 widelands)
  • Revision ID: kaputtnik-20190614184056-l0ha8pm5zais9mxk
Adapted code for use with python 3.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
#
8
8
 
9
9
from django import forms
10
 
from models import GGZAuth
 
10
from .models import GGZAuth
11
11
from django.utils.translation import ugettext_lazy as _
12
12
 
13
13
 
14
14
class EditGGZForm(forms.ModelForm):
15
 
    password = forms.CharField(label=_(u'Online Gaming Password'),
 
15
    password = forms.CharField(label=_('Online Gaming Password'),
16
16
                               widget=forms.PasswordInput(render_value=False), required=True)
17
17
    password2 = forms.CharField(label=_(u'Enter the password again'),
18
18
                               widget=forms.PasswordInput(render_value=False), required=True)