from django.db import models


class Genre(models.Model):
	def __unicode__(self):
		return self.name
	name = models.CharField(max_length=100)

class Venue(models.Model):
	def __unicode__(self):
		return self.name
	name = models.CharField(max_length=150)
	address = models.CharField(max_length=300)

class Band(models.Model):
	def __unicode__(self):
		retun self.name
	name = models.CharField(max_length=200)
	youtube_link = models.CharField(max_length=300)

class Show(models.Model):
	def __unicode__(self):
		return self.acts
	acts = models.CharField(max_length=500)
	venue = models.ForeignKey(Venue)
	genre = models.ForeignKey(Genre)
	datetime = models.DateTimeField()
	hype = models.IntegerField()
	bands = models.ManyToManyField(Band)

	def iterableHype(self):
		return range(self.hype)

	def tzShowTime(self):
		return self.datetime.strftime("%I:%M %p")


from django.db import models


class Genre(models.Model):
	def __unicode__(self):
		return self.name
	name = models.CharField(max_length=100)

class Venue(models.Model):
	def __unicode__(self):
		return self.name
	name = models.CharField(max_length=150)
	address = models.CharField(max_length=300)

class Band(models.Model):
	def __unicode__(self):
		return self.name
	name = models.CharField(max_length=200)
	youtube_link = models.CharField(max_length=300)

class Show(models.Model):
	def __unicode__(self):
		return self.acts
	acts = models.CharField(max_length=500)
	venue = models.ForeignKey(Venue)
	genre = models.ForeignKey(Genre)
	datetime = models.DateTimeField()
	hype = models.IntegerField()
	bands = models.ManyToManyField(Band)

	def iterableHype(self):
		return range(self.hype)

	def tzShowTime(self):
		return self.datetime.strftime("%I:%M %p")


fix return typo