Add image model for the forum widget user

parent c94eb215
......@@ -7,6 +7,7 @@ class Post(models.Model):
pub_date = models.DateTimeField("date published")
author = models.ForeignKey(WidgetUser, on_delete=models.CASCADE, default=1)
image = models.FileField(upload_to='static/forum/', blank=True, null=True)
def __str__(self):
return self.post_title
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment