Commit 39cfee87 authored by Joshua de Vera's avatar Joshua de Vera

Updated models.py

Added announcement branch's models.py file
parent 03808378
from django.db import models from django.db import models
from django.urls import reverse from django.urls import reverse
class Announcement(models.Model):
announcement_title= models.CharField(max_length=50)
announcement_body = models.CharField(max_length=200)
pub_date = models.DateTimeField(auto_now_add=True)
def __str__(self):
return self.announcement_title
\ 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