Skip to content
Snippets Groups Projects
models.py 1.08 KiB
Newer Older
Olivier Le Brouster's avatar
Olivier Le Brouster committed
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models
from newsbox.models import NewsboxBase, NewsboxSEOBase, NewsboxExpiredBase

Dylann Cordel's avatar
Dylann Cordel committed

Olivier Le Brouster's avatar
Olivier Le Brouster committed
class News(NewsboxBase):
    class Meta:
        verbose_name = 'news - Basic'
        verbose_name_plural = 'news - Basic'

Dylann Cordel's avatar
Dylann Cordel committed

class NewsSEO(NewsboxSEOBase, NewsboxBase):
Olivier Le Brouster's avatar
Olivier Le Brouster committed
    class Meta:
        verbose_name = 'news - SEO'
        verbose_name_plural = 'news - SEO'

Dylann Cordel's avatar
Dylann Cordel committed

class NewsExpired(NewsboxExpiredBase, NewsboxBase):
Olivier Le Brouster's avatar
Olivier Le Brouster committed
    class Meta:
        verbose_name = 'news - Expirable'
        verbose_name_plural = 'news - Expirable'

Dylann Cordel's avatar
Dylann Cordel committed

class NewsComplete(NewsboxSEOBase, NewsboxExpiredBase, NewsboxBase):
Olivier Le Brouster's avatar
Olivier Le Brouster committed
    class Meta:
        verbose_name = 'news - Complete'
        verbose_name_plural = 'news - Complete'

Dylann Cordel's avatar
Dylann Cordel committed

class NewsExtended(NewsboxSEOBase, NewsboxExpiredBase, NewsboxBase):
Olivier Le Brouster's avatar
Olivier Le Brouster committed
    general_field = models.CharField(max_length=50)
    content_field = models.CharField(max_length=50)
    seo_field = models.CharField(max_length=50)
Dylann Cordel's avatar
Dylann Cordel committed

Olivier Le Brouster's avatar
Olivier Le Brouster committed
    class Meta:
        verbose_name = 'news - Extended'
        verbose_name_plural = 'news - Extended'