Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from django.db import models
- from django.utils.encoding import smart_unicode
- # Create your models here.
- class SignUp(models.Model):
- first_name = models.CharField(max_length=120, null=True, blank=True)
- last_name = models.CharField(max_length=120, null=True, blank=True)
- email = models.EmailField()
- timestamp = models.DateTimeField(auto_now_add=True, auto_now=False)
- updated = models.DateTimeField(auto_now_add=False, auto_now=True)
- def __unicode__(self):
- return smart_unicode(self.email)
Advertisement
Add Comment
Please, Sign In to add comment