1 # -*- coding: utf-8 -*-
2 # This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later.
3 # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
5 from django.db import models
6 from django.utils.translation import ugettext_lazy as _
8 class InfoPage(models.Model):
10 An InfoPage is used to display a two-column flatpage
13 page_title = models.CharField(_('page title'), max_length=120)
14 slug = models.SlugField(_('slug'), max_length=120, unique=True, db_index=True)
15 title = models.CharField(_('title'), max_length=120)
16 left_column = models.TextField(_('left column'), blank=True)
17 right_column = models.TextField(_('right column'), blank=True)
21 verbose_name = _('info page')
22 verbose_name_plural = _('info pages')
24 def __unicode__(self):