mirror of
https://github.com/aykhans/portfolio-blog.git
synced 2025-12-14 17:49:19 +00:00
- Added flake8
- create_user moved to commands
This commit is contained in:
@@ -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
|
||||
)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user