Commit d7068207 authored by Lance Cedric Tan's avatar Lance Cedric Tan

Created amd migrated models

parent b1f82d90
No preview for this file type
from django.db import models from django.db import models
# Create your models here.
class ForumPost(models.Model):
title = models.CharField(max_length=100)
body = models.TextField()
author = models.CharField(max_length=50) #To be updated after Dashboard implementation
pub_datetime = models.DateTimeField()
def __str__(self):
return self.title
class Reply(models.Model):
body = models.TextField()
author = models.CharField(max_length=50) #To be updated after Dashboard implementation
pub_datetime = models.DateTimeField()
\ 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