Ignore:
Timestamp:
04/04/12 16:23:41 (14 months ago)
Author:
Santiago Piccinini (SAn) <spiccinini@…>
Branch:
default
Message:

Added the optional field Sender Name to the newsletter. If this name is specified the email will be sent in the form "Sender Name <sender_email>".

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cyclope/apps/newsletter/models.py

    r299 r538  
    4343    header = models.TextField(verbose_name=_('header'), help_text="Text that will always be added on top of the content.", blank=True) 
    4444    layout = models.ForeignKey(Layout, verbose_name=_('layout'), help_text="Layout to use to build the resulting HTML.") 
    45     sender = models.EmailField(verbose_name=_('sender'), help_text="e-mail address that will be used to send the newsletter.") 
     45    sender_name = models.CharField(verbose_name=_('sender name'), help_text="name that will displayed as the sender of the newsletter.",  max_length=40, default="", blank=True) 
     46    sender = models.EmailField(verbose_name=_('sender e-mail'), help_text="e-mail address that will be used to send the newsletter.") 
    4647    test_recipients = models.CharField(verbose_name=_('test recipients'), help_text="comma separated list of test e-mail addresses", max_length=255) 
    4748    recipients = models.TextField(verbose_name=_('recipients'), help_text="comma separated list of recipient e-mail addresses") 
    48      
     49 
    4950    def __unicode__(self): 
    5051        return self.name 
Note: See TracChangeset for help on using the changeset viewer.