summaryrefslogtreecommitdiff
path: root/archaeological_operations/forms.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2017-07-02 12:55:11 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2017-07-02 12:55:11 +0200
commitd78b8f0abd7750456f7ce0367467333ea206ff02 (patch)
treea81506ccdaa33521991843c4a79f45b7dd4f4edd /archaeological_operations/forms.py
parent52d4882f17fbb578c798f9529a88e495ae5a9ea3 (diff)
downloadIshtar-d78b8f0abd7750456f7ce0367467333ea206ff02.tar.bz2
Ishtar-d78b8f0abd7750456f7ce0367467333ea206ff02.zip
Context record wizard: fix creation
Diffstat (limited to 'archaeological_operations/forms.py')
-rw-r--r--archaeological_operations/forms.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/archaeological_operations/forms.py b/archaeological_operations/forms.py
index 529a0c2fb..acd0fb099 100644
--- a/archaeological_operations/forms.py
+++ b/archaeological_operations/forms.py
@@ -417,7 +417,7 @@ class RecordRelationsForm(ManageOldType, forms.Form):
raise forms.ValidationError(
_(u"You should select a relation type."))
if self.left_record and \
- str(cleaned_data.get('right_record')) == str(
+ str(cleaned_data.get('right_record', None)) == str(
self.left_record.pk):
raise forms.ValidationError(
_(u"An operation cannot be related to herself."))