Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {% for i in blog %}
- {{ i.body }}
- {% endfor %}
- class Blog(models.Model):
- title = models.CharField(max_length=100, unique=True)
- slug = models.SlugField(max_length=100, unique=True)
- para1 = models.TextField(blank=True)
- subheading1 = models.CharField(max_length=200, blank=True)
- para2 = models.TextField(blank=True)
- subheading2 = models.CharField(max_length=200, blank=True)
- para3 = models.TextField(blank=True)
- subheading3 = models.CharField(max_length=200, blank=True)
- para4 = models.TextField(blank=True)
- subheading4 = models.CharField(max_length=200, blank=True)
- para5 = models.TextField(blank=True)
- posted = models.DateTimeField(db_index=True, auto_now_add=True)
- category = models.ForeignKey('blog.Category', on_delete=models.CASCADE)
- codeblock = models.ForeignKey('blog.Code', on_delete=models.CASCADE, null=True)
- img = models.ImageField(null=True)
- headliner = models.BooleanField(default=0)
Add Comment
Please, Sign In to add comment