from django.db import models

# Create your models here.
class SignUp(models.Model):
    email = models.EmailField(verbose_name="Email adress")
    full_name = models.CharField(max_length=120, blank=True, null=True)
    timestamp = models.DateTimeField(auto_now_add=True, auto_now=False)
    updated = models.DateTimeField(auto_now_add=False, auto_now=True)

    def __unicode__(self): #Python 3.3 is __str__
    	return self.full_name

class Hobby(models.Model):
    signup = models.ForeignKey(SignUp)
    hobby = models.CharField(max_length=200)
