From 9dbe41d8252612ec968edaff53b7d14d925ab418 Mon Sep 17 00:00:00 2001 From: Shgck Date: Tue, 2 Feb 2016 18:30:43 +0100 Subject: [PATCH] Minor edits --- label/admin.py | 3 ++- label/models.py | 2 ++ label/templates/label/artists.html | 2 +- label/templates/label/release.html | 2 +- label/templates/label/releases.html | 2 +- 5 files changed, 7 insertions(+), 4 deletions(-) diff --git a/label/admin.py b/label/admin.py index d9f3e41..fd6b55a 100644 --- a/label/admin.py +++ b/label/admin.py @@ -1,5 +1,6 @@ from django.contrib import admin -from label.models import * + +from label.models import Artist, Release class ArtistAdmin(admin.ModelAdmin): diff --git a/label/models.py b/label/models.py index 338e56f..ee20b69 100644 --- a/label/models.py +++ b/label/models.py @@ -6,6 +6,7 @@ from django.template.defaultfilters import slugify class Artist(models.Model): """ An Artist of the label. """ + name = models.CharField(max_length = 64) slug = models.SlugField() image = models.ImageField(upload_to = "artists") @@ -41,6 +42,7 @@ class Release(models.Model): year: year of release cover: image file associated to this release """ + ident = models.IntegerField() title = models.CharField(max_length = 256) contributors = models.ManyToManyField(Artist) diff --git a/label/templates/label/artists.html b/label/templates/label/artists.html index 253754a..a61f91e 100644 --- a/label/templates/label/artists.html +++ b/label/templates/label/artists.html @@ -21,4 +21,4 @@ {% endfor %}

-{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/label/templates/label/release.html b/label/templates/label/release.html index 1c6df80..573fd86 100644 --- a/label/templates/label/release.html +++ b/label/templates/label/release.html @@ -66,4 +66,4 @@ {% endif %} -{% endblock %} \ No newline at end of file +{% endblock %} diff --git a/label/templates/label/releases.html b/label/templates/label/releases.html index 7560d69..e50d583 100644 --- a/label/templates/label/releases.html +++ b/label/templates/label/releases.html @@ -37,4 +37,4 @@ {% endfor %} -{% endblock %} \ No newline at end of file +{% endblock %}