from django.db import models
from django.utils.translation import ugettext_lazy as _

from .page import Page, PageQuerySet
from .program import Program, ProgramChildQuerySet


class Article(Page):
    detail_url_name = 'article-detail'

    is_static = models.BooleanField(
        _('is static'), default=False,
        help_text=_('Should this article be considered as a page '
                    'instead of a blog article'),
    )

    objects = ProgramChildQuerySet.as_manager()


    class Meta:
        verbose_name = _('Article')
        verbose_name_plural = _('Articles')

