File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 44from django .core .signals import setting_changed
55from ninja .pagination import PaginationBase
66from ninja .throttling import BaseThrottle
7- from pydantic import BaseModel , Field
7+ from pydantic import BaseModel , ConfigDict , Field
88from typing_extensions import Annotated
99
1010from ninja_extra .conf .decorator import AllowTypeOfSource
@@ -61,9 +61,10 @@ def __init__(self, data: dict) -> None:
6161
6262
6363class NinjaExtraSettings (BaseModel ):
64- class Config :
65- from_attributes = True
66- validate_assignment = True
64+ model_config = ConfigDict (
65+ from_attributes = True ,
66+ validate_assignment = True ,
67+ )
6768
6869 PAGINATION_CLASS : PaginationClassHandlerType = Field ( # type: ignore[assignment]
6970 "ninja.pagination.LimitOffsetPagination" ,
You can’t perform that action at this time.
0 commit comments