refactor(settings): Update all references to User to use get_user_model()

ref: #756 closes #755
This commit is contained in:
2025-05-14 19:47:50 +09:30
parent a4772e3c25
commit 2e49de8573
15 changed files with 54 additions and 28 deletions

View File

@ -1,6 +1,7 @@
import django
import pytest
from django.contrib.auth.models import Permission, User
from django.contrib.auth.models import Permission
from django.contrib.contenttypes.models import ContentType
from django.shortcuts import reverse
from django.test import Client, TestCase
@ -26,6 +27,8 @@ from api.tests.abstract.test_metadata_functional import (
from settings.models.user_settings import UserSettings
User = django.contrib.auth.get_user_model()
class ViewSetBase: