summaryrefslogtreecommitdiff
path: root/archaeological_context_records/forms.py
diff options
context:
space:
mode:
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
commit78cb0d4794a80c99e17f96a06e68951d5221d0f8 (patch)
treeceac818ab232d6fb74289ab31571de56086d7bb5 /archaeological_context_records/forms.py
parentc5bf89a4177c3f40a9b02e721bdcc5e85fc136bf (diff)
downloadIshtar-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.py2
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."))