Skip to content

Instantly share code, notes, and snippets.

@natea
Created June 7, 2011 21:45
Show Gist options
  • Save natea/1013252 to your computer and use it in GitHub Desktop.
Save natea/1013252 to your computer and use it in GitHub Desktop.
Valentunes Track class
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