Skip to content

Commit

Permalink
Merge pull request #24 from stuartmaxwell/dev
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartmaxwell authored May 1, 2024
2 parents bf1151f + 51a28fa commit fab374f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
6 changes: 6 additions & 0 deletions djpress/models/category.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,12 @@ class Category(models.Model):
# Custom Manager
objects: "CategoryManager" = CategoryManager()

class Meta:
"""Meta options for the category model."""

verbose_name = "category"
verbose_name_plural = "catregories"

def __str__(self: "Category") -> str:
"""Return the string representation of the category."""
return self.name
Expand Down
6 changes: 6 additions & 0 deletions djpress/models/content.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,12 @@ class Content(models.Model):
objects = models.Manager()
post_objects: "PostsManager" = PostsManager()

class Meta:
"""Meta options for the content model."""

verbose_name = "content"
verbose_name_plural = "contents"

def __str__(self: "Content") -> str:
"""Return the string representation of the content."""
return self.title
Expand Down
2 changes: 0 additions & 2 deletions templates/djpress/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@

{% elif posts %}

<h1>The posts go here.</h1>

{% for post in posts %}

{% include "djpress/snippets/content_summary.html" %}
Expand Down

0 comments on commit fab374f

Please sign in to comment.