Minor edits
This commit is contained in:
parent
00c5782a6a
commit
9dbe41d825
|
@ -1,5 +1,6 @@
|
|||
from django.contrib import admin
|
||||
from label.models import *
|
||||
|
||||
from label.models import Artist, Release
|
||||
|
||||
|
||||
class ArtistAdmin(admin.ModelAdmin):
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue