11 lines
433 B
Python
11 lines
433 B
Python
from django.contrib.auth.models import AbstractUser
|
|
from django.db import models
|
|
|
|
class CustomUser(AbstractUser):
|
|
profile_picture = models.ImageField(upload_to='profile_pics/', blank=True, null=True)
|
|
language = models.CharField(max_length=2, default='en')
|
|
is_2fa_enabled = models.BooleanField(default=False)
|
|
otp_secret = models.CharField(max_length=32, blank=True)
|
|
|
|
def __str__(self):
|
|
return self.username |