Created
June 7, 2011 21:45
-
-
Save natea/1013252 to your computer and use it in GitHub Desktop.
Valentunes Track class
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Track(models.Model): | |
""" Track is a song that we've found | |
on MusixMatch based on the recipients' interests. | |
""" | |
card = models.ManyToManyField(Card) | |
track_mbid = models.CharField(max_length=50) | |
track_name = models.CharField(max_length=200) | |
album_coverart_100x100 = models.URLField(max_length=200) | |
artist_name = models.CharField(max_length=200) | |
artist_mbid = models.CharField(max_length=200) | |
audio_url = models.URLField(max_length=640) | |
search_term = models.CharField(max_length=200) | |
def __unicode__(self): | |
return u"%s"%(self.artist_name+" - " + self.track_name) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment