Skip to content

Instantly share code, notes, and snippets.

@brightsheden
Last active August 10, 2021 19:44
Show Gist options
  • Save brightsheden/439ac9940d5525fff7907d569c6ea652 to your computer and use it in GitHub Desktop.
Save brightsheden/439ac9940d5525fff7907d569c6ea652 to your computer and use it in GitHub Desktop.
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