From: David ‘Bombe’ Roden Date: Wed, 8 May 2013 20:25:54 +0000 (+0200) Subject: Add group model. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=dc5d8c2958d8b7a098ee1a3df3c2fb4dcbdd7b27;p=demoscenemusic.git Add group model. --- diff --git a/data/models.py b/data/models.py index 95e69eb..93ef724 100644 --- a/data/models.py +++ b/data/models.py @@ -5,3 +5,11 @@ class Artist(models.Model): def __unicode__(self): return name + +class Group(models.Model): + name = models.CharField(max_length = 80) + website = models.CharField(max_length = 150) + artists = models.ManyToManyField(Artist) + + def __unicode__(self): + return self.name + " (" + self.website + ")"