django-mpesa
django-mpesa copied to clipboard
LipaNaMpesaOnline.py uses models.filter() to get a single instance of PaymentTransaction
Potential errors where a single instance is not found or multiple object instances are found.
Proposed solution
Use models.get(pk=id) to get a single model instance
What about using models.filter.first()?