You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
993 B
30 lines
993 B
from django.db import models
|
|
|
|
class Post(models.Model):
|
|
title = models.CharField(max_length=200)
|
|
content = models.TextField()
|
|
short_description = models.TextField(max_length=300, blank=True, null=True)
|
|
pub_date = models.DateTimeField('date published')
|
|
show_on_page = models.BooleanField(default=False)
|
|
|
|
def __str__(self):
|
|
return self.title
|
|
|
|
class Index_Post(models.Model):
|
|
title = models.CharField(max_length=200)
|
|
content = models.TextField()
|
|
pub_date = models.DateTimeField('date published')
|
|
show_on_page = models.BooleanField(default=False)
|
|
|
|
def __str__(self):
|
|
return self.title
|
|
|
|
class Sexy_Posts(models.Model):
|
|
title = models.CharField(max_length=200)
|
|
content = models.TextField()
|
|
short_description = models.TextField(max_length=300, blank=True, null=True)
|
|
pub_date = models.DateTimeField('date published')
|
|
show_on_page = models.BooleanField(default=False)
|
|
|
|
def __str__(self):
|
|
return self.title
|