projects
/
demoscenemusic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add group model.
[demoscenemusic.git]
/
data
/
models.py
diff --git
a/data/models.py
b/data/models.py
index
95e69eb
..
93ef724
100644
(file)
--- a/
data/models.py
+++ b/
data/models.py
@@
-5,3
+5,11
@@
class Artist(models.Model):
def __unicode__(self):
return name
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 + ")"