diff options
author | Étienne Loks <etienne.loks@peacefrogs.net> | 2013-08-29 15:39:44 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@peacefrogs.net> | 2013-08-29 15:39:44 +0200 |
commit | d323cdcbf698fefa9f2d29589261d0757f4417c9 (patch) | |
tree | 2b85c3e81e5b7849c962502fbe1d654094443865 /archaeological_context_records/forms.py | |
parent | d48e91db62ec07eb11fbc8b6b5360ef7a45c4cd0 (diff) | |
download | Ishtar-d323cdcbf698fefa9f2d29589261d0757f4417c9.tar.bz2 Ishtar-d323cdcbf698fefa9f2d29589261d0757f4417c9.zip |
Make all "short_label" properties (refs #1370)
Diffstat (limited to 'archaeological_context_records/forms.py')
-rw-r--r-- | archaeological_context_records/forms.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/archaeological_context_records/forms.py b/archaeological_context_records/forms.py index f90cf7e9d..34f1a5101 100644 --- a/archaeological_context_records/forms.py +++ b/archaeological_context_records/forms.py @@ -128,7 +128,8 @@ class RecordFormGeneral(forms.Form): parcels = sorted(parcels, key=sort) for key, gparcels in groupby(parcels, sort): self.fields['parcel'].choices.append( - (" - ".join(key), [(parcel.pk, parcel.short_label()) for parcel in gparcels]) + (" - ".join(key), [(parcel.pk, parcel.short_label) + for parcel in gparcels]) ) self.fields['unit'].choices = models.Unit.get_types() self.fields['unit'].help_text = models.Unit.get_help() |