jira-25 setting API

This commit is contained in:
jain
2023-07-11 18:23:40 +05:30
parent 68ce67d387
commit 7e7367e3a4
11 changed files with 138 additions and 33 deletions

View File

@ -3,7 +3,7 @@
from django.db import models
from django.contrib.auth import get_user_model
"""Import Django app"""
from base.constants import GENDERS, TASK_STATUS, PENDING, TASK_POINTS
from base.constants import GENDERS, TASK_STATUS, PENDING, TASK_POINTS, SIGNUP_METHODS
from junior.models import Junior
"""Add user model"""
User = get_user_model()
@ -27,6 +27,8 @@ class Guardian(models.Model):
is_verified = models.BooleanField(default=False)
is_complete_profile = models.BooleanField(default=False)
passcode = models.IntegerField(null=True, blank=True, default=None)
"""Sign up method"""
signup_method = models.CharField(max_length=31, choices=SIGNUP_METHODS, default='1')
"""Codes"""
guardian_code = models.CharField(max_length=10, null=True, blank=True, default=None)
referral_code = models.CharField(max_length=10, null=True, blank=True, default=None)