Update models.py

parent 8f067320
......@@ -14,7 +14,7 @@ class Announcement(models.Model):
title = models.CharField(max_length=100)
body = models.TextField(max_length=10000)
author = models.ForeignKey(WidgetUser, on_delete=models.CASCADE)
pub_datetime = models.DateTimeField(default=timezone.now, null=True, blank=True, default=None)
pub_datetime = models.DateTimeField(default=timezone.now, null=True, blank=True)
def __str__(self):
return self.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