Snippets

Mücahit Şenol User Model

Created by Mücahit Şenol
class User(AbstractBaseUser):
    USERNAME_FIELD = 'user_id'
    user_id = models.CharField(max_length=255, null=False, blank=False)
    name = models.CharField(max_length=255, null=True, blank=True)
    gender = models.CharField(max_length=255, choices=(('male', 'male'), ('female', 'female')), blank=True, null=True)
    birthday_age = models.CharField(max_length=255, null=True, blank=True)
    registration_type = models.CharField(max_length=255, blank=True, null=True, choices=(('facebook', 'facebook'), ('manual', 'manual')))
    location = models.CharField(max_length=255, blank=True, null=True)
    timestamp = models.CharField(max_length=255, blank=True, null=True)
    email = models.CharField(max_length=255, blank=True, null=True)
    age_min = models.CharField(max_length=255, blank=True, null=True)

Comments (0)

HTTPS SSH

You can clone a snippet to your computer for local editing. Learn more.