Skip to content

Commit 3d6388c

Browse files
author
Walter Renner
committed
whitespace
1 parent 78fc9ee commit 3d6388c

File tree

1 file changed

+15
-14
lines changed

1 file changed

+15
-14
lines changed

Diff for: cmsplugin_contact_plus/models.py

+15-14
Original file line numberDiff line numberDiff line change
@@ -22,44 +22,46 @@ def get_current_site():
2222
except:
2323
current_site = 'example.com'
2424
return _('Contact form message from {}').format(current_site)
25+
26+
2527
@python_2_unicode_compatible
2628
class ContactPlus(CMSPlugin):
27-
title = models.CharField(_('Title'),
28-
null=True,
29-
blank=True,
30-
max_length=100,
29+
title = models.CharField(_('Title'),
30+
null=True,
31+
blank=True,
32+
max_length=100,
3133
help_text=_("Title for the Contact Form."))
3234
email_subject = models.CharField(
33-
max_length=256,
35+
max_length=256,
3436
verbose_name=_("Email subject"),
3537
default=get_current_site)
36-
recipient_email = models.EmailField(_("Email of recipients"),
38+
recipient_email = models.EmailField(_("Email of recipients"),
3739
default=DEFAULT_FROM_EMAIL_ADDRESS,
3840
max_length=254)
39-
collect_records = models.BooleanField(_('Collect Records'),
40-
default=True,
41+
collect_records = models.BooleanField(_('Collect Records'),
42+
default=True,
4143
help_text=_("If active, all records for this Form will be stored in the Database."))
4244
thanks = models.TextField(_('Message displayed after submitting the contact form.'))
4345
submit_button_text = models.CharField(_('Text for the Submit button.'),
44-
blank=True,
46+
blank=True,
4547
max_length=30)
4648
template = models.CharField(
4749
max_length=255,
4850
choices=local_settings.CMSPLUGIN_CONTACT_PLUS_TEMPLATES,
4951
default='cmsplugin_contact_plus/contact.html',
5052
editable=len(local_settings.CMSPLUGIN_CONTACT_PLUS_TEMPLATES) > 1)
51-
53+
5254
class Meta:
5355
verbose_name = "Contact Plus Form"
5456
verbose_name_plural = "Contact Plus Forms"
55-
57+
5658
def copy_relations(self, oldinstance):
5759
for extrafield in ExtraField.objects.filter(form__pk=oldinstance.pk):
5860
extrafield.pk = None
5961
extrafield.save()
6062
self.extrafield_set.add(
6163
extrafield)
62-
64+
6365
def __str__(self):
6466
if self.title:
6567
return self.title
@@ -140,6 +142,5 @@ def is_processed(self):
140142
return False
141143

142144
def __str__(self):
143-
return _(u"Record for %(contact)s recorded on %(date)s") % {'contact':self.contact_form,
145+
return _(u"Record for %(contact)s recorded on %(date)s") % {'contact':self.contact_form,
144146
'date': self.date_of_entry.strftime('%d. %b %Y') }
145-

0 commit comments

Comments
 (0)