Added plural for Categories in model

This commit is contained in:
2020-06-07 10:18:39 +00:00
parent 7628eb2008
commit 54516e4330

View File

@@ -34,6 +34,10 @@ class Category(models.Model):
slug = models.SlugField(unique=True,null=True,blank=True) # Slug = Text Basierter url bestandteil zb Fetsitzung 22.1.2020 --> fetsitzung_22_1_2020 für Url
image = models.ImageField(null=True,blank=True) # Ein Haupt Bild für den Post
tags = TaggableManager(blank=True) # Tags
class Meta:
verbose_name = "Category"
verbose_name_plural = "Categories"
# Create your models here.
class Post(models.Model):
@@ -116,4 +120,4 @@ class Event(Post):
class Meta:
proxy=True
objects=EventManager()