Skip to content
Snippets Groups Projects
Commit 2edb1627 authored by Bryan BRANCOTTE's avatar Bryan BRANCOTTE
Browse files

extracting UserPreferencesAbstractModel so it can be used when user_model is redefined

parent 3dcf2c04
No related branches found
No related tags found
No related merge requests found
Pipeline #61265 passed
......@@ -12,7 +12,7 @@ from basetheme_bootstrap import user_preferences_utils
logger = logging.getLogger("basetheme_bootstrap")
class UserPreferencesAbstractModel(user_preferences_utils.UserPreferencesAbstractModelWithUser):
class UserPreferencesAbstractModel(user_preferences_utils.UserPreferencesAbstractModelWithoutUser):
class Meta:
abstract = True
......
......@@ -38,7 +38,7 @@ def get_user_preferences_for_user(user):
return klass.get_for_user(user=user)
class UserPreferencesAbstractModelWithUser(models.Model):
class UserPreferencesAbstractModelWithoutUser(models.Model):
class Meta:
abstract = True
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment