Управление категориями
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user