From e1255de9ed1137d5cba673baea34fc9bf40044ad Mon Sep 17 00:00:00 2001 From: Oleg Serbokryl Date: Sun, 8 Dec 2019 16:41:32 +0200 Subject: [PATCH 1/2] pydantic moved EmailStr from types --- .../backend/app/app/api/api_v1/endpoints/users.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/{{cookiecutter.project_slug}}/backend/app/app/api/api_v1/endpoints/users.py b/{{cookiecutter.project_slug}}/backend/app/app/api/api_v1/endpoints/users.py index 966fe12ddc..f85c658101 100644 --- a/{{cookiecutter.project_slug}}/backend/app/app/api/api_v1/endpoints/users.py +++ b/{{cookiecutter.project_slug}}/backend/app/app/api/api_v1/endpoints/users.py @@ -2,7 +2,7 @@ from fastapi import APIRouter, Body, Depends, HTTPException from fastapi.encoders import jsonable_encoder -from pydantic.types import EmailStr +from pydantic import EmailStr from sqlalchemy.orm import Session from app import crud From 195e70df305e8aa71a91bc0611560208b7261ea1 Mon Sep 17 00:00:00 2001 From: Oleg Serbokryl Date: Sun, 8 Dec 2019 16:42:31 +0200 Subject: [PATCH 2/2] pydantic moved EmailStr --- .../backend/app/app/api/api_v1/endpoints/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/{{cookiecutter.project_slug}}/backend/app/app/api/api_v1/endpoints/utils.py b/{{cookiecutter.project_slug}}/backend/app/app/api/api_v1/endpoints/utils.py index cc43abe52a..1650f4f81c 100644 --- a/{{cookiecutter.project_slug}}/backend/app/app/api/api_v1/endpoints/utils.py +++ b/{{cookiecutter.project_slug}}/backend/app/app/api/api_v1/endpoints/utils.py @@ -1,5 +1,5 @@ from fastapi import APIRouter, Depends -from pydantic.types import EmailStr +from pydantic import EmailStr from app.api.utils.security import get_current_active_superuser from app.core.celery_app import celery_app