summaryrefslogtreecommitdiff
path: root/archaeological_context_records/forms.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2016-10-17 19:24:28 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2016-10-17 19:24:28 +0200
commit64bb69c03ce1688c72b3f7ebd0e1550cd941aa69 (patch)
tree904d5a6c1c12572d5a81ed7831deabfb3cc08828 /archaeological_context_records/forms.py
parentf102f5855c878f35a529aa6e1947e7516a1a67fa (diff)
parent461e0320a8426fe82c4f6a7fd9cfa376c767fbdd (diff)
downloadIshtar-64bb69c03ce1688c72b3f7ebd0e1550cd941aa69.tar.bz2
Ishtar-64bb69c03ce1688c72b3f7ebd0e1550cd941aa69.zip
Merge branch 'master' into v0.9
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."))