announcement widget wrong reference bug fix

parent d4f44634
from django.contrib import admin from django.contrib import admin
from .models import Announcement
# Register your models here. # Register your models here.
admin.site.register(Announcement)
\ No newline at end of file
...@@ -7,4 +7,4 @@ class Announcement(models.Model): ...@@ -7,4 +7,4 @@ class Announcement(models.Model):
pub_date = models.DateTimeField("date published") pub_date = models.DateTimeField("date published")
def __str__(self): def __str__(self):
return self.name return self.announcement_title
\ No newline at end of file \ No newline at end of file
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