склади и инструмент готовы
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -40,5 +40,5 @@ class Toolkit(Base):
|
||||
async def save(self):
|
||||
return await CRUD.create(self, refresh=True)
|
||||
|
||||
async def edit(id: int, **kwargs):
|
||||
return await CRUD.update(Toolkit, id, **kwargs)
|
||||
async def edit(self, **kwargs):
|
||||
return await CRUD.update(Toolkit, self.id, **kwargs)
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@ class User(Base):
|
||||
id = Column(Integer, primary_key=True, index=True)
|
||||
login = Column(String, unique=True, index=True)
|
||||
username = Column(String, unique=True, index=True)
|
||||
photo = Column(String, default="images/users/default.png")
|
||||
photo = Column(String, default="static/images/users/default.png")
|
||||
hashed_password = Column(String)
|
||||
access_level_id = Column(Integer, ForeignKey("access_level.id", ondelete="CASCADE"))
|
||||
is_active = Column(Boolean, default=True)
|
||||
|
||||
Reference in New Issue
Block a user