mirror of
https://github.com/django-components/django-components.git
synced 2025-08-10 17:28:00 +00:00
refactor: change context_behavior default to "django" (#515)
This commit is contained in:
parent
881c36219a
commit
f3e0bf6b62
2 changed files with 62 additions and 42 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue