def post(self): generate_from_mock(mock='roles', model=Role, db=db) generate_from_mock(mock='users', model=User, db=db) generate_from_mock(mock='projects', model=Project, db=db) generate_from_mock(mock='tasks', model=Task, db=db) generate_from_mock(mock='comments', model=Comment, db=db) generate_from_mock(mock='social-accounts', model=SocialAccount, db=db) generate_from_mock(mock='posts', model=Post, db=db) return {'message': 'ok'}
def generate_projects(): generate_from_mock(mock='projects', model=Project, db=db)
def generate_roles(): generate_from_mock(mock='roles', model=Role, db=db)
def generate_users(): generate_from_mock(mock='users', model=User, db=db)
def generate_comments(): generate_from_mock(mock='comments', model=Comment, db=db)
def generate_social_accounts(): generate_from_mock(mock='social-accounts', model=SocialAccount, db=db)
def generate_posts(): generate_from_mock(mock='posts', model=Post, db=db)