def insert(self): data = { "username": self.username, "password": self.password } DB.insert(collection='Auths', data=data)
def insert(self): DB.insert(collection='users', data=self.json())