Commit 408687f5 authored by Christian Sarabia's avatar Christian Sarabia

Allowed date edit in forum post in admin

parent a7bcd91c
...@@ -6,6 +6,7 @@ class Post(models.Model): ...@@ -6,6 +6,7 @@ class Post(models.Model):
post_title = models.CharField(max_length=50) post_title = models.CharField(max_length=50)
post_body = models.TextField(max_length=1500) post_body = models.TextField(max_length=1500)
pub_date = models.DateTimeField("date published", auto_now_add=True) pub_date = models.DateTimeField("date published", auto_now_add=True)
pub_date.editable=True
author = models.ForeignKey(WidgetUser, on_delete=models.CASCADE) author = models.ForeignKey(WidgetUser, on_delete=models.CASCADE)
post_image = models.ImageField(null = True, blank = True, upload_to = "forum/") post_image = models.ImageField(null = True, blank = True, upload_to = "forum/")
......
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