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 | 78cb0d4794a80c99e17f96a06e68951d5221d0f8 (patch) | |
tree | ceac818ab232d6fb74289ab31571de56086d7bb5 /archaeological_context_records/forms.py | |
parent | c5bf89a4177c3f40a9b02e721bdcc5e85fc136bf (diff) | |
download | Ishtar-78cb0d4794a80c99e17f96a06e68951d5221d0f8.tar.bz2 Ishtar-78cb0d4794a80c99e17f96a06e68951d5221d0f8.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.")) |