mirror of
https://github.com/django-components/django-components.git
synced 2025-08-10 17:28:00 +00:00
feat: allow to set defaults (#1072)
* feat: allow to set defaults * docs: update changelog * refactor: fix new linter errors
This commit is contained in:
parent
48dd3b7a5a
commit
f07818fc7d
16 changed files with 553 additions and 36 deletions
|
@ -750,9 +750,10 @@ class InternalSettings:
|
|||
)
|
||||
|
||||
# Prepend built-in extensions
|
||||
from django_components.extensions.defaults import DefaultsExtension
|
||||
from django_components.extensions.view import ViewExtension
|
||||
|
||||
extensions = [ViewExtension] + list(extensions)
|
||||
extensions = [DefaultsExtension, ViewExtension] + list(extensions)
|
||||
|
||||
# Extensions may be passed in either as classes or import strings.
|
||||
extension_instances: List["ComponentExtension"] = []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue