diff options
| author | Étienne Loks <etienne.loks@iggdrasil.net> | 2021-02-12 17:53:44 +0100 | 
|---|---|---|
| committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2021-02-28 12:15:24 +0100 | 
| commit | 60a80e0bc33798a36e1a29253c8123f1d19bd2a5 (patch) | |
| tree | 9bf31ced127fc7389d9ba6f9d55279fd21debcfb /archaeological_operations/forms.py | |
| parent | 0d860bb0211ce14bbb86ffe7411ec2853852b64d (diff) | |
| download | Ishtar-60a80e0bc33798a36e1a29253c8123f1d19bd2a5.tar.bz2 Ishtar-60a80e0bc33798a36e1a29253c8123f1d19bd2a5.zip | |
Refactoring - typo
Diffstat (limited to 'archaeological_operations/forms.py')
| -rw-r--r-- | archaeological_operations/forms.py | 8 | 
1 files changed, 4 insertions, 4 deletions
| diff --git a/archaeological_operations/forms.py b/archaeological_operations/forms.py index b54a081d8..2d462c252 100644 --- a/archaeological_operations/forms.py +++ b/archaeological_operations/forms.py @@ -179,7 +179,7 @@ class ParcelForm(IshtarForm):          grouped = []          for keys, parcel_grp in groupby(parcels, key=sortkeyfn):              keys = list(keys) -            keys.append([u' '.join([str(gp[-2]), str(gp[-1])]) +            keys.append([' '.join([str(gp[-2]), str(gp[-1])])                           for gp in parcel_grp])              grouped.append(keys)          res = '' @@ -191,11 +191,11 @@ class ParcelForm(IshtarForm):                  c_section = ''                  if idx:                      res += " ; " -                res += town + u' : ' +                res += town + ' : '              if c_section:                  res += " / "              c_section = section -            res += section + u' ' +            res += section + ' '              res += ", ".join(parcel_numbers)              if year:                  res += " (%s)" % str(year) @@ -1825,7 +1825,7 @@ class GenerateDocForm(IshtarForm):          if 'choices' in kwargs:              choices = kwargs.pop('choices')          super(GenerateDocForm, self).__init__(*args, **kwargs) -        self.fields['doc_generation'].choices = [('', u'-' * 9)] + \ +        self.fields['doc_generation'].choices = [('', '-' * 9)] + \              [(choice.pk, str(choice)) for choice in choices] | 
