remove placeholder

This commit is contained in:
2021-06-20 21:46:24 +00:00
committed by Patrick Mayr
parent 72de2c69f9
commit f4ddf2fea9
3 changed files with 0 additions and 3 deletions

View File

@@ -39,7 +39,6 @@ class DocumentationAdminForm(forms.ModelForm):
"title",
"slug",
"topic",
"placeholder",
"description",
]

View File

@@ -71,7 +71,6 @@ class Topic(models.Model):
class Documentation(models.Model):
title = models.CharField(verbose_name="Titel", max_length=128)
slug = models.SlugField(max_length=10)
placeholder = models.CharField(verbose_name="Platzhalter", max_length=128, default="Titel")
description = models.TextField(null=True, blank=True)

View File

@@ -63,7 +63,6 @@ def show_docu(request, topic_slug=None, slug=None):
messages.info(request, '; '.join(elem))
initial = {
"title": active_docu.placeholder,
"documentation": active_docu,
}