logs-collector/logs_collector/account/models.py

11 lines
309 B
Python
Raw Normal View History

from django.urls import reverse
from django.contrib.auth.models import AbstractUser
2023-08-14 09:56:17 +02: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')