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
Pipeline #61265 passed with stage
in 1 minute and 14 seconds
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment