Add news posts
You know. For basic information. Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user