Skip to content

Commit 8475178

Browse files
add autoconfigure method call back to app config ready method (#205)
Woops, didn't mean for this to be removed just yet.
1 parent dab1675 commit 8475178

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ and this project attempts to adhere to [Semantic Versioning](https://semver.org/
2222

2323
- Added new plugin hook `pre_ready` for handling initialization of library, but run before any internal setup. Needed for django-bird-autoconf to autoconfigure projects, e.g, add to template builtins.
2424

25+
### Fixed
26+
27+
- Added `app_settings.autoconfigure()` call back to the library's `ready` method, in order to preserve previous behavior before deprecation of autoconfiguration.
28+
2529
## [0.16.1]
2630

2731
### Added

src/django_bird/apps.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,14 @@ class DjangoBirdAppConfig(AppConfig):
1616
@override
1717
def ready(self):
1818
from django_bird.components import components
19+
from django_bird.conf import app_settings
1920
from django_bird.plugins import pm
2021
from django_bird.staticfiles import asset_types
2122

2223
for pre_ready in pm.hook.pre_ready():
2324
pre_ready()
2425

26+
app_settings.autoconfigure()
2527
pm.hook.register_asset_types(register_type=asset_types.register_type)
2628
components.discover_components()
2729

0 commit comments

Comments
 (0)