diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-10-16 23:29:41 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-10-16 23:29:41 +0200 |
commit | cd19678576fd28662f5685d4c52552b96a82e251 (patch) | |
tree | ceac818ab232d6fb74289ab31571de56086d7bb5 /archaeological_context_records/forms.py | |
parent | f9e0e0518c087febb5bf0eb89eac34f685559970 (diff) | |
download | Ishtar-cd19678576fd28662f5685d4c52552b96a82e251.tar.bz2 Ishtar-cd19678576fd28662f5685d4c52552b96a82e251.zip |
List and export context record relations (refs #3329)
Diffstat (limited to 'archaeological_context_records/forms.py')
-rw-r--r-- | archaeological_context_records/forms.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/archaeological_context_records/forms.py b/archaeological_context_records/forms.py index d468e3a3c..4a5267654 100644 --- a/archaeological_context_records/forms.py +++ b/archaeological_context_records/forms.py @@ -214,7 +214,7 @@ class RecordFormGeneral(ManageOldType, forms.Form): cr = models.ContextRecord.objects.filter( label=label, parcel__operation__pk=operation_id) if 'pk' in cleaned_data and cleaned_data['pk']: - cr = cr.exclude(pk=cleaned_data['pk']) + cr = cr.exclude(pk=int(cleaned_data['pk'])) if cr.count(): raise forms.ValidationError(_(u"This ID already exists for " u"this operation.")) |