From 52532c2a5ca4ab266d3ed646c822c418e2557d6f Mon Sep 17 00:00:00 2001 From: mik-laj Date: Mon, 5 Oct 2015 06:50:55 +0200 Subject: [PATCH] Lines is too long --- atom/forms.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/atom/forms.py b/atom/forms.py index ab10277..ec43e97 100644 --- a/atom/forms.py +++ b/atom/forms.py @@ -40,11 +40,13 @@ class SingleButtonMixin(HelperMixin): @property def action_text(self): - return _('Update') if hasattr(self, 'instance') and self.instance.pk else _('Save') + return _('Update') if (hasattr(self, 'instance') and + self.instance.pk) else _('Save' def __init__(self, *args, **kwargs): super(SingleButtonMixin, self).__init__(*args, **kwargs) - self.helper.add_input(Submit('action', self.action_text, css_class="btn-primary")) + self.helper.add_input( + Submit('action', self.action_text, css_class="btn-primary")) class SaveButtonMixin(SingleButtonMixin):