- Added flake8

- create_user moved to commands
This commit is contained in:
2023-09-16 18:06:47 +04:00
parent 3659e04622
commit f782944caa
29 changed files with 239 additions and 132 deletions

View File

@@ -13,7 +13,6 @@ from app.utils.custom_functions import html2text
from app.core.config import settings
class PostBase(BaseModel):
title: Optional[str] = Field(max_length=100)
text: Optional[str] = None
@@ -26,7 +25,8 @@ class PostCreate(PostBase):
image_path: str
class PostUpdate(PostBase): ...
class PostUpdate(PostBase):
...
class PostInTemplate(BaseModel):
@@ -85,4 +85,4 @@ class Post(PostInDBBase):
settings.MEDIA_FOLDER /
settings.FILE_FOLDERS['post_images'] /
v
)
)