File: models.py

package info (click to toggle)
django-allauth 65.15.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 11,524 kB
  • sloc: python: 45,207; javascript: 3,335; xml: 849; makefile: 218; sh: 6
file content (10 lines) | stat: -rw-r--r-- 322 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
import uuid

from django.contrib.auth.models import AbstractUser
from django.db import models


class User(AbstractUser):
    id = models.UUIDField(primary_key=True, default=uuid.uuid4)
    phone = models.CharField(max_length=16, unique=True, blank=True, null=True)
    phone_verified = models.BooleanField(default=False)