from django.db import models
from django.utils import timezone


# Create your models here.
class BlogPostModel(models.Model):
    title = models.CharField(max_length=200)
    text = models.TextField(max_length=5000)
    created_date = models.DateTimeField(default=timezone.now)
    published_date = models.DateTimeField(default=timezone.now)

    def __str__(self):
        return self.title

b8dde05ad9bebd21255e70f46c5fd1f598d6498a
<mask token>


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

<mask token>


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

    def __str__(self):
        return self.title

<mask token>


class BlogPostModel(models.Model):
    title = models.CharField(max_length=200)
    text = models.TextField(max_length=5000)
    created_date = models.DateTimeField(default=timezone.now)
    published_date = models.DateTimeField(default=timezone.now)

    def __str__(self):
        return self.title

from django.db import models
from django.utils import timezone


class BlogPostModel(models.Model):
    title = models.CharField(max_length=200)
    text = models.TextField(max_length=5000)
    created_date = models.DateTimeField(default=timezone.now)
    published_date = models.DateTimeField(default=timezone.now)

    def __str__(self):
        return self.title

from django.db import models
from django.utils import timezone


# Create your models here.
class BlogPostModel(models.Model):
    title = models.CharField(max_length=200)
    text = models.TextField(max_length=5000)
    created_date = models.DateTimeField(default=timezone.now)
    published_date = models.DateTimeField(default=timezone.now)

    def __str__(self):
        return self.title
