Added plural for Categories in model
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user