Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- transaction_model = PaymentTransaction if transaction_type == 'payments' else LookupTransaction
- # the code above in more vebose way
- if transaction_type == 'payments':
- transaction_model = PaymentTransaction
- else:
- transaction_model = LookupTransaction
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement