10 lines
336 B
Python
10 lines
336 B
Python
from django.contrib.auth.models import AbstractUser
|
|
from django.db import models
|
|
|
|
class User(AbstractUser):
|
|
full_name = models.CharField(max_length=150, blank=True)
|
|
bio = models.TextField(blank=True)
|
|
avatar = models.ImageField(upload_to='avatars/', null=True, blank=True)
|
|
|
|
def __str__(self):
|
|
return self.username |