Example #1
0
def remove_model_from_db(model_id):
    from database import remove_model
    return { 'success': remove_model(model_id) }
Example #2
0
 def remove(args):
     import models.bio as bio_models
     for model_name in args.models:
         model = getattr(bio_models, model_name)
         remove_model(model)
         db.session.commit()
Example #3
0
 def remove(self, **kwargs):
     """Do not overwrite this function"""
     remove_model(self.model, self.raw_delete_all, self.restart_autoincrement)