refactor: change context_behavior default to "django" (#515)

This commit is contained in:
Juro Oravec 2024-06-01 09:24:52 +02:00 committed by GitHub
parent 881c36219a
commit f3e0bf6b62
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 62 additions and 42 deletions

View file

@ -105,7 +105,7 @@ class AppSettings:
@property
def CONTEXT_BEHAVIOR(self) -> ContextBehavior:
raw_value = self.settings.get("context_behavior", ContextBehavior.ISOLATED.value)
raw_value = self.settings.get("context_behavior", ContextBehavior.DJANGO.value)
return self._validate_context_behavior(raw_value)
def _validate_context_behavior(self, raw_value: ContextBehavior) -> ContextBehavior: