Last active
August 10, 2021 19:44
-
-
Save brightsheden/439ac9940d5525fff7907d569c6ea652 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from os import name | |
from django.db import models | |
#from django.contrib.auth.models import User | |
#this is the user model with my desire fields | |
# Create your models here. | |
class User(models.Model): | |
name = models.CharField(max_length=200, null=True, blank=True) | |
email = models.EmailField(max_length=200, null=True, blank=True) | |
occupation = models.CharField(max_length=200, null=True, blank=True) | |
image = models.ImageField(null=True, blank=True, ) | |
skills = models.CharField(max_length=200, null=True, blank=True) | |
about = models.TextField(null=True, blank=True) | |
gender = models.CharField(max_length=100, null=True, blank=True) | |
password = models.CharField(max_length=100, null=True, blank=True) | |
_id = models.AutoField(primary_key=True, editable=False) | |
def __str__(self): | |
return self.name | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment