def patch(self, _id):
        schema = AddressSchema(partial=True)
        attributes, errors = schema.load(request.json)
        if errors:
            return errors, 422

        return dbutils.update(Address, **attributes)
Example #2
0
    def patch(self, user_id):
        schema = UserSchema(partial=True)
        attributes, errors = schema.load(request.json)
        if errors:
            return errors, 422

        return dbutils.update(User, **attributes)
 def delete(self, _id):
     return dbutils.update(Address, active=False)
Example #4
0
 def delete(self, _id):
     return dbutils.update(Profile, active=False)
 def delete(self, _id):
     return dbutils.update(Company, active=False)
Example #6
0
 def delete(self, user_id):
     return dbutils.update(User, active=False)