remove placeholder
This commit is contained in:
@@ -39,7 +39,6 @@ class DocumentationAdminForm(forms.ModelForm):
|
|||||||
"title",
|
"title",
|
||||||
"slug",
|
"slug",
|
||||||
"topic",
|
"topic",
|
||||||
"placeholder",
|
|
||||||
"description",
|
"description",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|||||||
@@ -71,7 +71,6 @@ class Topic(models.Model):
|
|||||||
class Documentation(models.Model):
|
class Documentation(models.Model):
|
||||||
title = models.CharField(verbose_name="Titel", max_length=128)
|
title = models.CharField(verbose_name="Titel", max_length=128)
|
||||||
slug = models.SlugField(max_length=10)
|
slug = models.SlugField(max_length=10)
|
||||||
placeholder = models.CharField(verbose_name="Platzhalter", max_length=128, default="Titel")
|
|
||||||
|
|
||||||
description = models.TextField(null=True, blank=True)
|
description = models.TextField(null=True, blank=True)
|
||||||
|
|
||||||
|
|||||||
@@ -63,7 +63,6 @@ def show_docu(request, topic_slug=None, slug=None):
|
|||||||
messages.info(request, '; '.join(elem))
|
messages.info(request, '; '.join(elem))
|
||||||
|
|
||||||
initial = {
|
initial = {
|
||||||
"title": active_docu.placeholder,
|
|
||||||
"documentation": active_docu,
|
"documentation": active_docu,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user