Commit 236751c1 authored by Joshua de Vera's avatar Joshua de Vera

Pub_Date Fixed

parent ce604261
...@@ -13,7 +13,6 @@ class AnnouncementAdmin(admin.ModelAdmin): ...@@ -13,7 +13,6 @@ class AnnouncementAdmin(admin.ModelAdmin):
'fields': [ 'fields': [
'announcement_title', 'announcement_title',
'announcement_body', 'announcement_body',
'pub_date'
] ]
}) })
] ]
......
...@@ -4,7 +4,7 @@ from django.urls import reverse ...@@ -4,7 +4,7 @@ from django.urls import reverse
class Announcement(models.Model): class Announcement(models.Model):
announcement_title= models.CharField(max_length=50) announcement_title= models.CharField(max_length=50)
announcement_body = models.CharField(max_length=200) announcement_body = models.CharField(max_length=200)
pub_date = models.DateTimeField(auto_now_add=True) pub_date = models.DateTimeField(auto_now_add=True, editable=False)
def __str__(self): def __str__(self):
return self.full_announcement return self.full_announcement
......
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