Skip to content

Commit

Permalink
chore: upgrade to django-components 0.74 (#58)
Browse files Browse the repository at this point in the history
- Typings stubs are not longer needed
- A flag is needed as a default behaviour changed
  • Loading branch information
GabDug authored May 14, 2024
1 parent 30b8055 commit 3e9e636
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 69 deletions.
11 changes: 6 additions & 5 deletions pdm.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ dependencies = [
"dateparser>=1.2.0",
"django-tables2>=2.6.0",
"pdpyras>=5.1.3",
"django-components>=0.61",
"django-components>=0.74",
"django-htmx>=1.17.2",
"django-simple-menu>=2.1.3",
"markdown>=3.5.1",
Expand Down
1 change: 1 addition & 0 deletions src/firefighter/firefighter/settings/components/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,7 @@ def get_django_username(x: dict[str, str]) -> str | None:
# Components
COMPONENTS = {
"autodiscover": False,
"context_behavior": "django", # Like before django-components 0.67
"libraries": [
"firefighter.components.avatar.avatar",
"firefighter.components.card.card",
Expand Down
7 changes: 0 additions & 7 deletions stubs/django_components/__init__.pyi

This file was deleted.

36 changes: 0 additions & 36 deletions stubs/django_components/component.pyi

This file was deleted.

20 changes: 0 additions & 20 deletions stubs/django_components/component_registry.pyi

This file was deleted.

0 comments on commit 3e9e636

Please sign in to comment.