From 0da65787eb6ed7a53cfbe8ab43a1eb416c9711e3 Mon Sep 17 00:00:00 2001 From: Shgck Date: Fri, 26 Feb 2016 18:34:44 +0100 Subject: [PATCH] More admin fields hints --- label/models.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/label/models.py b/label/models.py index fd9aa9d..91ec4d2 100644 --- a/label/models.py +++ b/label/models.py @@ -4,6 +4,8 @@ from django.dispatch.dispatcher import receiver from django.template.defaultfilters import slugify +ART_GENRE_HINT = "lowercase please!" +ART_DESC_HINT = "Markdown or HTML formatting supported" ART_TYPES_HINT = "main roster (0), side project (1)" class Artist(models.Model): @@ -14,8 +16,8 @@ class Artist(models.Model): image = models.ImageField(upload_to = "artists") url_bandcamp = models.URLField(blank = True) url_soundcloud = models.URLField(blank = True) - genre = models.CharField(max_length = 256) - description = models.TextField(blank = True) + genre = models.CharField(max_length = 256, help_text = ART_GENRE_HINT) + description = models.TextField(blank = True, help_text = ART_DESC_HINT) artist_type = models.IntegerField(default = 0, help_text = ART_TYPES_HINT) def __str__(self): @@ -30,6 +32,7 @@ def _artist_pre_save(sender, instance, **kwargs): REL_TYPES_HINT = "full-length (0), EP (1), Split (2), Démo (3)" +REL_EMBED_HINT = "HTML iframe -- for Bandcamp, add the whole tracklist" class Release(models.Model): """ A release (album, EP, ...) of the label. @@ -52,7 +55,7 @@ class Release(models.Model): release_type = models.IntegerField(default = 0, help_text = REL_TYPES_HINT) cover = models.ImageField(upload_to = "releases") year = models.IntegerField() - embed = models.TextField(blank = True) + embed = models.TextField(blank = True, help_text = REL_EMBED_HINT) description = models.TextField(blank = True) def __str__(self):