summaryrefslogtreecommitdiff
path: root/archaeological_operations
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
commit5803cee0ebfb57779a21da987f0ca557a7c7bd39 (patch)
treea81506ccdaa33521991843c4a79f45b7dd4f4edd /archaeological_operations
parent528e51fc17ca9e90f0b3fa013f50cf985e77978f (diff)
downloadIshtar-5803cee0ebfb57779a21da987f0ca557a7c7bd39.tar.bz2
Ishtar-5803cee0ebfb57779a21da987f0ca557a7c7bd39.zip
Context record wizard: fix creation
Diffstat (limited to 'archaeological_operations')
-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."))