mirror of
https://github.com/pacnpal/thrillwiki_django_no_react.git
synced 2026-01-02 01:47:04 -05:00
feat: Implement initial schema and add various API, service, and management command enhancements across the application.
This commit is contained in:
@@ -16,6 +16,7 @@ class Tag(SluggedModel):
|
||||
def __str__(self):
|
||||
return self.name
|
||||
|
||||
|
||||
class Post(SluggedModel):
|
||||
title = models.CharField(max_length=255)
|
||||
content = models.TextField(help_text="Markdown content supported")
|
||||
@@ -27,14 +28,10 @@ class Post(SluggedModel):
|
||||
null=True,
|
||||
blank=True,
|
||||
related_name="blog_posts",
|
||||
help_text="Featured image"
|
||||
help_text="Featured image",
|
||||
)
|
||||
|
||||
author = models.ForeignKey(
|
||||
settings.AUTH_USER_MODEL,
|
||||
on_delete=models.CASCADE,
|
||||
related_name="blog_posts"
|
||||
)
|
||||
author = models.ForeignKey(settings.AUTH_USER_MODEL, on_delete=models.CASCADE, related_name="blog_posts")
|
||||
|
||||
published_at = models.DateTimeField(null=True, blank=True, db_index=True)
|
||||
is_published = models.BooleanField(default=False, db_index=True)
|
||||
|
||||
Reference in New Issue
Block a user