diff --git a/models.py b/models.py index 94869a5..2798c12 100644 --- a/models.py +++ b/models.py @@ -1,5 +1,5 @@ from fastapi import Query -from pydantic import BaseModel +from pydantic import BaseModel, EmailStr from typing import Optional @@ -17,7 +17,7 @@ class CreateEvent(BaseModel): class CreateTicket(BaseModel): name: str - email: str + email: EmailStr class Event(BaseModel): diff --git a/templates/events/display.html b/templates/events/display.html index 78f2225..60ec944 100644 --- a/templates/events/display.html +++ b/templates/events/display.html @@ -13,14 +13,33 @@
You'll be redirected in a few moments...