Changed body to TextField

parent 58b8e81d
......@@ -10,8 +10,9 @@ REACTIONS = ((Like, 'Like'), (Love, 'Love'), (Angry, 'Angry'))
class Announcement(models.Model):
title = models.CharField(max_length=50)
body = models.CharField(max_length=500)
author = models.ForeignKey(WidgetUser, on_delete=models.CASCADE, null=True, blank=True, default=None)
body = models.TextField(max_length=500)
author = models.CharField(max_length=100)
#author = models.ForeignKey(WidgetUser, on_delete=models.CASCADE, null=True, blank=True, default=None)
pub_datetime = models.DateTimeField("date published", default=timezone.now, null=True)
def __str__(self):
......
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