# -*- coding: utf-8 -*-
from django.core.urlresolvers import reverse
from django.db import models

from entropy.mixins import (
    SlugUniqueMixin, TitleMixin, TextMixin, ModifiedMixin, CreatedMixin, EnabledMixin
)
from images.mixins import ImageMixin
from templates.mixins import TemplateMixin


class Page(TitleMixin, SlugUniqueMixin, ImageMixin, EnabledMixin, TextMixin, TemplateMixin):

    # title
    # short_title
    # slug
    # enabled
    # text

    class Meta:
        verbose_name = 'Content Page'
        verbose_name_plural = 'Content Pages with Page Content Views'

    def get_absolute_url(self):
        return reverse('pages_page', args=(self.slug, ))

    @staticmethod
    def get_list_url():
        return reverse('pages_pages')

@@ -290,16 +290,128 @@
 eMixin%0A%0A
+try:%0A    from publica_admin.mixins import PublicaAdminMixin%0Aexcept ImportError:%0A    PublicaAdminMixin = object%0A%0A
 %0Aclass P
@@ -493,16 +493,35 @@
 ateMixin
+, PublicaAdminMixin
 ):%0A%0A    

add publica mixin