Skip to content

Commit

Permalink
vertical space choices
Browse files Browse the repository at this point in the history
  • Loading branch information
vilos committed Apr 8, 2011
1 parent c6e3682 commit ea6a778
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cms_columns/models.py
Expand Up @@ -29,8 +29,13 @@ class ManualBreak(CMSPlugin):
def __unicode__(self):
return u'%s' % self.column_width

CMS_VISUAL_BREAK_OPTIONS = getattr(settings, 'CMS_VISUAL_BREAK_OPTIONS', (
('vertical-space', _('Vertical Space')),
('visual-break', _('Visual Break')),
)
)
class VisualBreak(CMSPlugin):
css_class = models.CharField(_("CSS Class"), max_length=100, default="visual-break", blank=True)
css_class = models.CharField(_("CSS Class"), max_length=100, default="visual-break", blank=True, choices=CMS_VISUAL_BREAK_OPTIONS)

def __unicode__(self):
return u'%s' % self.css_class

0 comments on commit ea6a778

Please sign in to comment.