Commit 8d5b5e31 authored by Lance Cedric Tan's avatar Lance Cedric Tan

Created amd migrated models

parent a119efe2
No preview for this file type
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