Guest User

Untitled

a guest
Oct 11th, 2018
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. from django.db import models
  2. from django.contrib.auth.models import User
  3.  
  4. class User_profile(models.Model):
  5. user = models.OneToOneField(User,on_delete = models.CASCADE)
  6. name = models.CharField(max_lenght=100)
  7. email = models.CharField(max_lenght=100,default='you@email.com')
  8. password = models.CharField(max_lenght=100, default='')
Add Comment
Please, Sign In to add comment