2023-09-10 11:34:54 +08:00
|
|
|
from django.urls import reverse
|
|
|
|
from django.contrib.auth.models import AbstractUser
|
2023-08-14 15:56:17 +08:00
|
|
|
|
2023-09-10 11:34:54 +08:00
|
|
|
|
|
|
|
# using-a-custom-user-model-when-starting-a-project
|
|
|
|
# https://docs.djangoproject.com/en/4.2/topics/auth/customizing/
|
|
|
|
class User(AbstractUser):
|
|
|
|
|
|
|
|
def get_absolute_url(self):
|
|
|
|
return reverse('account:show_profile')
|