diff options
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 |
commit | 5803cee0ebfb57779a21da987f0ca557a7c7bd39 (patch) | |
tree | a81506ccdaa33521991843c4a79f45b7dd4f4edd /archaeological_operations | |
parent | 528e51fc17ca9e90f0b3fa013f50cf985e77978f (diff) | |
download | Ishtar-5803cee0ebfb57779a21da987f0ca557a7c7bd39.tar.bz2 Ishtar-5803cee0ebfb57779a21da987f0ca557a7c7bd39.zip |
Context record wizard: fix creation
Diffstat (limited to 'archaeological_operations')
-rw-r--r-- | archaeological_operations/forms.py | 2 |
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.")) |