Reputation: 118
How to get a value from the result of queryset and assign it
I've got a result of queryset
<QueryDict: {'payment_id': ['KIAhwplaq0qgx8'], 'pay_order_id': ['order_KIAhsgbBDXth83'], 'result': ['5e5ab4f08a09915aa4791d25315b565beb62efe52fae71de877e2818d266f538']}>
I want those values to be assigned like this
payment_id = 'KIAhwplaq0qgx8'
pay_order_id = 'order_KIAhsgbBDXth83'
result = '5e5ab4f08a09915aa4791d25315b565beb62efe52fae71de877e2818d266f538'
Even the queryset code to get a value AND ASSIGNING IT IS FINE BUT i Don't KNOW How. If anyone knows. Please share it. It would be Helpful
Upvotes: 0
Views: 659