Advertisement
Guest User

Untitled

a guest
Aug 18th, 2011
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.55 KB | None | 0 0
  1. class CustomerUserProfile(models.Model):
  2.     user = models.OneToOneField(User, blank=True)
  3.     # Only little extra information need, eg, Full Name
  4.  
  5. class MerchantUserProfile(models.Model):
  6.     user = models.OneToOneField(User, blank=True)
  7.     #More extensive info. Full Name, Address, Contact Info, Payment Details, URL
  8.  
  9. ##### OR ######
  10.  
  11. class UserProfile(models.Model):
  12.     user = models.OneToOneField(User, blank=True)
  13.  
  14.     is_Merchant = models.BooleanField()
  15.     #Further information here
  16.     #Even a function to perhaps check all the information is checked in correctly.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement