From dc5d8c2958d8b7a098ee1a3df3c2fb4dcbdd7b27 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Wed, 8 May 2013 22:25:54 +0200 Subject: [PATCH] Add group model. --- data/models.py | 8 ++++++++ 1 file changed, 8 insertions(+) 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 + ")" -- 2.7.4