from __future__ import unicode_literals
from django.db import models


class NewsPost(models.Model):
    title = models.CharField(max_length=200)
    content = models.TextField()
    text_content = models.TextField(null=True, blank=True)
    thumbnail = models.ImageField(upload_to='news', null=True)
    reference_date = models.DateField()
    publish_date = models.DateField()
    blog_page = models.URLField(null=True, blank=True)
    active = models.BooleanField(default=False)

    def __unicode__(self):
        return self.title

d505194a83bf29674a0f5f2ab1de0d4e41d0b3d0
<mask token>


class NewsPost(models.Model):
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>

<mask token>


class NewsPost(models.Model):
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>
    <mask token>

    def __unicode__(self):
        return self.title

<mask token>


class NewsPost(models.Model):
    title = models.CharField(max_length=200)
    content = models.TextField()
    text_content = models.TextField(null=True, blank=True)
    thumbnail = models.ImageField(upload_to='news', null=True)
    reference_date = models.DateField()
    publish_date = models.DateField()
    blog_page = models.URLField(null=True, blank=True)
    active = models.BooleanField(default=False)

    def __unicode__(self):
        return self.title

from __future__ import unicode_literals
from django.db import models


class NewsPost(models.Model):
    title = models.CharField(max_length=200)
    content = models.TextField()
    text_content = models.TextField(null=True, blank=True)
    thumbnail = models.ImageField(upload_to='news', null=True)
    reference_date = models.DateField()
    publish_date = models.DateField()
    blog_page = models.URLField(null=True, blank=True)
    active = models.BooleanField(default=False)

    def __unicode__(self):
        return self.title
