@@ -5,6 +5,85 @@ All notable changes to this project will be documented in this file.
55The format is based on [ Keep a Changelog] ( https://keepachangelog.com/en/1.0.0/ ) , and this project adheres
66to [ Semantic Versioning] ( https://semver.org/spec/v2.0.0.html ) .
77
8+ ## [ 0.15.0] - 2025-05-21
9+
10+ ### Breaking Changes
11+
12+ #### Updated Method Signatures in ` ModelView ` Class
13+
14+ The following methods in the ` ModelView ` class now require an additional ` request ` parameter:
15+
16+ 1 . ** ` get_list_query ` **
17+ - ** Old Signature:** ` def get_list_query(self) -> Select `
18+ - ** New Signature:** ` def get_list_query(self, request: Request) -> Select `
19+
20+ 2 . ** ` get_count_query ` **
21+ - ** Old Signature:** ` def get_count_query(self) -> Select `
22+ - ** New Signature:** ` def get_count_query(self, request: Request) -> Select `
23+
24+ #### Impact on Custom Implementations
25+
26+ If you have extended or overridden the ` get_list_query ` or ` get_count_query ` methods in your custom views, you ** must
27+ update** their definitions to include the ` request ` parameter.
28+
29+ #### Example Update
30+
31+ === "Before"
32+
33+ ```python
34+ def get_list_query(self) -> Select:
35+ return super().get_list_query().where(Post.published == true())
36+ ```
37+
38+ === "After"
39+
40+ ```python
41+ def get_list_query(self, request: Request) -> Select:
42+ return super().get_list_query(request).where(Post.published == true())
43+ ```
44+
45+ ### Added
46+
47+ * Implement Beanie ODM Support by [ @alexdlukens ] ( https://github.com/alexdlukens )
48+ in [ #656 ] ( https://github.com/jowilf/starlette-admin/pull/656 )
49+ * Add zh_Hant (Traditional Chinese) translation by [ @limouren ] ( https://github.com/limouren )
50+ in [ #646 ] ( https://github.com/jowilf/starlette-admin/pull/646 )
51+ * Add ` get_details_query ` to SQLAlchemy ModelView. by [ @nimaxin ] ( https://github.com/nimaxin )
52+ in [ #643 ] ( https://github.com/jowilf/starlette-admin/pull/643 )
53+ * feat(sqla): add support for joined table polymorphic inheritance by [ @noamsto ] ( https://github.com/noamsto )
54+ in [ #633 ] ( https://github.com/jowilf/starlette-admin/pull/633 )
55+ * Improve JsonField form template by [ @jowilf ] ( https://github.com/jowilf )
56+ in [ #639 ] ( https://github.com/jowilf/starlette-admin/pull/639 )
57+ * bump httpx test dependency by [ @pbsds ] ( https://github.com/pbsds )
58+ in [ #630 ] ( https://github.com/jowilf/starlette-admin/pull/630 )
59+ * Allow overriding the default templates by [ @jowilf ] ( https://github.com/jowilf )
60+ in [ #636 ] ( https://github.com/jowilf/starlette-admin/pull/636 )
61+ * upgrade tabler to 1.1.0 by [ @jowilf ] ( https://github.com/jowilf )
62+ in [ #637 ] ( https://github.com/jowilf/starlette-admin/pull/637 )
63+ * Add support for sqlalchemy ` collection_class ` property by [ @jowilf ] ( https://github.com/jowilf )
64+ in [ #625 ] ( https://github.com/jowilf/starlette-admin/pull/625 )
65+ * feat(base): add redirect_slashes option to mount_to method by [ @noamsto ] ( https://github.com/noamsto )
66+ in [ #618 ] ( https://github.com/jowilf/starlette-admin/pull/618 )
67+ * escape row and bulk actions form value in template by [ @jowilf ] ( https://github.com/jowilf )
68+ in [ #615 ] ( https://github.com/jowilf/starlette-admin/pull/615 )
69+ * upgrade tabler to beta21 by [ @jowilf ] ( https://github.com/jowilf )
70+ in [ #599 ] ( https://github.com/jowilf/starlette-admin/pull/599 )
71+ * Upgrade Odmantic support to v1.0+ by [ @jowilf ] ( https://github.com/jowilf )
72+ in [ #594 ] ( https://github.com/jowilf/starlette-admin/pull/594 )
73+ * Add Portuguese translation by [ @abnerjacobsen ] ( https://github.com/abnerjacobsen )
74+ in [ #480 ] ( https://github.com/jowilf/starlette-admin/pull/480 )
75+
76+ ### Fixed
77+
78+ * Fix dictionary size change exception when using SQLAlchemy ` association_proxy ` by [ @jowilf ] ( https://github.com/jowilf )
79+ in [ #624 ] ( https://github.com/jowilf/starlette-admin/pull/624 )
80+ * Update enum rendering to ensure 'selected' state is applied for data value of 0
81+ by [ @tomopy03 ] ( https://github.com/tomopy03 ) in [ #621 ] ( https://github.com/jowilf/starlette-admin/pull/621 )
82+ * escape json value in relation template by [ @jowilf ] ( https://github.com/jowilf )
83+ in [ #598 ] ( https://github.com/jowilf/starlette-admin/pull/598 )
84+ * Fix Deprecation Warnings for TemplateResponse and Jinja2Templates by [ @ptrstn ] ( https://github.com/ptrstn )
85+ in [ #575 ] ( https://github.com/jowilf/starlette-admin/pull/575 )
86+
887## [ 0.14.1] - 2024-07-12
988
1089### Fixed
0 commit comments