mirror of
https://github.com/django-components/django-components.git
synced 2025-08-10 09:17:59 +00:00
feat: component URL (#1088)
* feat: allow to set defaults * refactor: remove input validation and link to it * feat: component URL * refactor: fix linter errors * refactor: fix linter errors + update examples to use Component.View..get * docs: update comment * refactor: revert change to hash_comp_cls * docs: update comment
This commit is contained in:
parent
3555411f1e
commit
a49f5e51dd
37 changed files with 987 additions and 314 deletions
|
@ -751,9 +751,10 @@ class InternalSettings:
|
|||
|
||||
# Prepend built-in extensions
|
||||
from django_components.extensions.defaults import DefaultsExtension
|
||||
from django_components.extensions.url import UrlExtension
|
||||
from django_components.extensions.view import ViewExtension
|
||||
|
||||
extensions = [DefaultsExtension, ViewExtension] + list(extensions)
|
||||
extensions = [DefaultsExtension, ViewExtension, UrlExtension] + 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