diff options
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 |
commit | 64bb69c03ce1688c72b3f7ebd0e1550cd941aa69 (patch) | |
tree | 904d5a6c1c12572d5a81ed7831deabfb3cc08828 /archaeological_context_records/forms.py | |
parent | f102f5855c878f35a529aa6e1947e7516a1a67fa (diff) | |
parent | 461e0320a8426fe82c4f6a7fd9cfa376c767fbdd (diff) | |
download | Ishtar-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.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.")) |