fix: запретить изменение ad_post_url после создания закупа
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -60,7 +60,6 @@ class UpdatePlacementInput(pydantic.BaseModel):
|
||||
placement_date: datetime.datetime | None = None
|
||||
cost: float | None = None
|
||||
comment: str | None = None
|
||||
ad_post_url: str | None = None
|
||||
status: domain.PlacementStatus | None = None
|
||||
|
||||
|
||||
|
||||
@@ -26,8 +26,6 @@ async def update_placement(
|
||||
placement.cost = input.cost
|
||||
if input.comment is not None:
|
||||
placement.comment = input.comment
|
||||
if input.ad_post_url is not None:
|
||||
placement.ad_post_url = input.ad_post_url
|
||||
if input.status is not None:
|
||||
placement.status = input.status
|
||||
|
||||
|
||||
Reference in New Issue
Block a user