File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 11"""Django Ninja Extra - Class Based Utility and more for Django Ninja(Fast Django REST framework)"""
22
3- __version__ = "0.22.5 "
3+ __version__ = "0.22.6 "
44
55import django
66
Original file line number Diff line number Diff line change 1111from ninja_extra .interfaces .ordering import OrderingBase
1212from ninja_extra .interfaces .route_context import RouteContextBase
1313from ninja_extra .interfaces .searching import SearchingBase
14+ from ninja_extra .lazy import LazyStrImport
1415
1516_GenericModelValidator = AllowTypeOfSource (
16- validator = lambda source , value : isinstance (value , type )
17- and issubclass (value , source ),
17+ validator = lambda source , value : (
18+ isinstance (value , LazyStrImport )
19+ or isinstance (value , type )
20+ and issubclass (value , source )
21+ ),
1822 error_message = lambda source ,
1923 value : f"Expected type of { source .__name__ } , received: { type (value )} " ,
2024)
You can’t perform that action at this time.
0 commit comments