Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from tropicalista.models.user import Loan
- from tropicalista.omdels import DBSession
- def main():
- from tropicalista.models.user import Label
- labels = ['Cobrança', 'Customer Care', 'Judicial', 'Ouvidoria', 'Procon', 'Reclame aqui', 'Redes sociais']
- for label in labels:
- new_label = Label(caption=label)
- DBSession.add(new_label)
- DBSession.flush()
Add Comment
Please, Sign In to add comment