refactor(api): fix deprecation warnings (#2839)
Fix some deprecation warnings related to the pydantic upgrade.
This commit is contained in:
parent
8ae4dce9e7
commit
d80100a216
3 changed files with 6 additions and 6 deletions
|
@ -22,7 +22,7 @@ class InfoView(APIView):
|
|||
def get(self, request):
|
||||
data = Preference.get_site_preferences()
|
||||
return Response(
|
||||
data.dict(
|
||||
data.model_dump(
|
||||
include={
|
||||
"station_name",
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue