diff --git a/label/models.py b/label/models.py index f8ee823..96369bc 100644 --- a/label/models.py +++ b/label/models.py @@ -4,22 +4,21 @@ 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): """ An Artist of the label. """ + GENRE_HINT = 'lowercase please!' + DESC_HINT = 'Markdown or HTML formatting supported' + TYPE_HINT = 'main roster (0), side project (1)' + name = models.CharField(max_length=64) slug = models.SlugField() image = models.ImageField(upload_to='artists') url_bandcamp = models.URLField(blank=True) url_soundcloud = models.URLField(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) + genre = models.CharField(max_length=256, help_text=GENRE_HINT) + description = models.TextField(blank=True, help_text=DESC_HINT) + artist_type = models.IntegerField(default=0, help_text=TYPE_HINT) def __str__(self): return self.name @@ -28,7 +27,7 @@ class Artist(models.Model): ordering = ('name',) -@receiver(pre_save, sender = Artist) +@receiver(pre_save, sender=Artist) def _artist_pre_save(sender, instance, **kwargs): instance.slug = slugify(instance.name) diff --git a/label/static/label/css/artist.css b/label/static/label/css/artist.css index cadea71..5dc6b2b 100644 --- a/label/static/label/css/artist.css +++ b/label/static/label/css/artist.css @@ -8,6 +8,7 @@ max-width: 300px; max-height: 300px; border-radius: 5px; + background-color: white; } .minilogo { diff --git a/templates/about.html b/templates/about.html index 326ff25..206ee4c 100644 --- a/templates/about.html +++ b/templates/about.html @@ -9,8 +9,8 @@ to harsh noise, with chiptunes and post-metal. More than anything it's a community of friends with common interests, that happens to produce a lot of music.

-

We do not sell physical copies but feel free to contact us if you really feel -that we should. *<B^)

+

We do not often produce physical releases but feel free to contact us if you +really feel that we should. *<B^)

logo