Fixed admin panel bugs

parent e7d573dc
...@@ -5,7 +5,7 @@ from dashboard import models as dashboard_models ...@@ -5,7 +5,7 @@ from dashboard import models as dashboard_models
class Announcement(models.Model): class Announcement(models.Model):
title = models.CharField(max_length=255, default="") title = models.CharField(max_length=255, default="")
body = models.TextField(default="") body = models.TextField(default="")
author = models.ForeignKey('dashboard.WidgetUser', on_delete=models.CASCADE) author = models.ForeignKey(dashboard_models.WidgetUser, on_delete=models.CASCADE)
pub_datetime = models.DateTimeField() pub_datetime = models.DateTimeField()
def __str__(self): 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