refactor(api): fix deprecation warnings (#2839)

Fix some deprecation warnings related to the pydantic upgrade.
This commit is contained in:
Jonas L 2023-12-27 15:46:38 +01:00 committed by GitHub
parent 8ae4dce9e7
commit d80100a216
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 6 deletions

View file

@ -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",
}