aboutsummaryrefslogblamecommitdiff
blob: c6df3e7e26fa5ca6a3591233f6367541a9828b33 (plain) (tree)
1
2
3
4
5
6
7
8
9








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


class User(AbstractUser):
    name = models.CharField(max_length=50, blank=True)
    telegram_id = models.PositiveBigIntegerField(unique=True, primary_key=True)
    username = models.CharField(max_length=32, blank=False)
    USERNAME_FIELD = 'telegram_id'
Powered by cgit v1.2.3 (git 2.41.0)