From d78b8f0abd7750456f7ce0367467333ea206ff02 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Sun, 2 Jul 2017 12:55:11 +0200 Subject: Context record wizard: fix creation --- archaeological_operations/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'archaeological_operations') 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.")) -- cgit v1.2.3