Skip to content

Commit d41b75a

Browse files
kike-reveniagateblue
authored andcommitted
Add autofield to apps
1 parent 1a4cba7 commit d41b75a

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

dynamic_preferences/apps.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
class DynamicPreferencesConfig(AppConfig):
99
name = "dynamic_preferences"
1010
verbose_name = _("Dynamic Preferences")
11+
default_auto_field = "django.db.models.AutoField"
1112

1213
def ready(self):
1314
if preferences_settings.ENABLE_GLOBAL_MODEL_AUTO_REGISTRATION:

dynamic_preferences/users/apps.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ class UserPreferencesConfig(AppConfig):
1010
name = "dynamic_preferences.users"
1111
verbose_name = _("Preferences - Users")
1212
label = "dynamic_preferences_users"
13+
default_auto_field = "django.db.models.AutoField"
1314

1415
def ready(self):
1516
UserPreferenceModel = self.get_model("UserPreferenceModel")

0 commit comments

Comments
 (0)