# -*- coding: utf-8 -*-

__author__ = 'sync'

from django.db import models

from BaseModels.base_models import BaseModelViewPage, BaseModel
# from ckeditor.fields import RichTextField
from ckeditor_uploader.fields import RichTextUploadingField
from django.utils.translation import gettext_lazy as _


# class ArticlesPageSets(BaseModelViewPage):
#
#     class Meta:
#         verbose_name = 'Настройки страницы архива статей'
#         verbose_name_plural = 'Настройки страницы архива статей'


class UserPageModel(BaseModelViewPage):
    # pub_DT = models.DateTimeField(verbose_name=u'Дата и время публикации', auto_created=True)
    text = RichTextUploadingField(verbose_name=u'Текст')

    class Meta:
        verbose_name=u'Пользовательская страница'
        verbose_name_plural =u'Пользовательские страницы'
        # unique_together = ('url', 'region')
        # managed=True
        # app_label = u'ArticlesApp'


class ArticleModel(BaseModelViewPage):
    # pub_DT = models.DateTimeField(verbose_name=u'Дата и время публикации', auto_created=True)
    text = RichTextUploadingField(verbose_name=u'Текст')

    class Meta:
        verbose_name='Статья'
        verbose_name_plural ='Статьи'