TotteL

Untitled

Jan 25th, 2015
368
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.52 KB | None | 0 0
  1. from django.db import models
  2. from django.utils.encoding import smart_unicode
  3.  
  4. # Create your models here.
  5.  
  6.  
  7. class SignUp(models.Model):
  8.     first_name = models.CharField(max_length=120, null=True, blank=True)
  9.     last_name = models.CharField(max_length=120, null=True, blank=True)
  10.     email = models.EmailField()
  11.     timestamp = models.DateTimeField(auto_now_add=True, auto_now=False)
  12.     updated = models.DateTimeField(auto_now_add=False, auto_now=True)
  13.  
  14.     def __unicode__(self):
  15.         return smart_unicode(self.email)
Advertisement
Add Comment
Please, Sign In to add comment