Add news posts

You know. For basic information.

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
This commit is contained in:
2022-07-13 23:01:51 -07:00
parent a4f00e6242
commit 996e75dc2a
6 changed files with 73 additions and 2 deletions

View File

@@ -397,3 +397,14 @@ class Capcode(models.Model):
def __str__(self) -> str:
return self.suffix
class NewsPost(models.Model):
# The time that this news post was created.
created = models.DateTimeField(auto_now_add=True)
# The title for this news post.
title = models.CharField(max_length=300)
# The author of this news post.
author = models.CharField(max_length=100, blank=True)
# The content of this news post.
body = models.TextField(blank=True)