diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-10-17 19:27:59 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-10-17 19:27:59 +0200 |
commit | 4be9edb096c6685245b4a997130e1016578c1ff7 (patch) | |
tree | cbb21e7b1e42aec0e763e3322863055b0c468dcc /archaeological_context_records/forms.py | |
parent | 84f9336f71dd70a8bb040b17eab4c753669c4276 (diff) | |
parent | 64bb69c03ce1688c72b3f7ebd0e1550cd941aa69 (diff) | |
download | Ishtar-4be9edb096c6685245b4a997130e1016578c1ff7.tar.bz2 Ishtar-4be9edb096c6685245b4a997130e1016578c1ff7.zip |
Merge branch 'v0.9' into wheezy
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.")) |