from django.db import models

class Post(models.Model):
    Khushi = 'Khushi'
    Zain = 'Zain'
    AUTHOR_CHOICES = (
        (Khushi, 'Khushi'),
        (Zain, 'Zain')
    )

    title = models.CharField(max_length=140)
    body = models.TextField()
    author = models.CharField(max_length=10, choices=AUTHOR_CHOICES, default=Zain)
    date = models.DateTimeField()

    def __str__(self):
        return self.title
d81e99ae76fb7106fd6b669cb616d1d8893e0396
<mask token>


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

<mask token>


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

    def __str__(self):
        return self.title

<mask token>


class Post(models.Model):
    Khushi = 'Khushi'
    Zain = 'Zain'
    AUTHOR_CHOICES = (Khushi, 'Khushi'), (Zain, 'Zain')
    title = models.CharField(max_length=140)
    body = models.TextField()
    author = models.CharField(max_length=10, choices=AUTHOR_CHOICES,
        default=Zain)
    date = models.DateTimeField()

    def __str__(self):
        return self.title

from django.db import models


class Post(models.Model):
    Khushi = 'Khushi'
    Zain = 'Zain'
    AUTHOR_CHOICES = (Khushi, 'Khushi'), (Zain, 'Zain')
    title = models.CharField(max_length=140)
    body = models.TextField()
    author = models.CharField(max_length=10, choices=AUTHOR_CHOICES,
        default=Zain)
    date = models.DateTimeField()

    def __str__(self):
        return self.title

from django.db import models

class Post(models.Model):
    Khushi = 'Khushi'
    Zain = 'Zain'
    AUTHOR_CHOICES = (
        (Khushi, 'Khushi'),
        (Zain, 'Zain')
    )

    title = models.CharField(max_length=140)
    body = models.TextField()
    author = models.CharField(max_length=10, choices=AUTHOR_CHOICES, default=Zain)
    date = models.DateTimeField()

    def __str__(self):
        return self.title