Управление категориями

This commit is contained in:
2025-12-11 23:07:22 +03:00
parent 56584cc8ff
commit 8b38d69980
11 changed files with 902 additions and 38 deletions
Binary file not shown.
+2 -2
View File
@@ -23,5 +23,5 @@ class Category(Base):
async def save(self):
return await CRUD.create(self, refresh=True)
async def edit(id: int, **kwargs):
return await CRUD.update(Category, id, **kwargs)
async def edit(self, **kwargs):
return await CRUD.update(Category, self.id, **kwargs)