Re: Django filters with Foreign Key

2016-09-19 Thread A.Khan
> > Happy to see we are in same boat. It did work with like: > def prod_sold(self): prod = self.get_prod().filter(seller__user=self.account.user) sold = Order.objects.filter(id=products) return sold But it only shows number of products sold. I couldn't make it happen. I

Creating Cash on Delivery Payment Method in Django

2016-08-10 Thread A.Khan
I have two models orders/carts. I got braintreee implemented and working fine with sandbox. Now need to get cashondelivery model implemented with minimum iteration. So I did created a form out of field "payment_options" from Order models. I need help to generalize the process to implement COD.

Django Multiple Currencies Implementation

2016-08-07 Thread A.Khan
Hi I am new to Django and I need to implement multiple currency options based on user's preference. What I don't understand that let's say I am in Pakistan and I've used in my template simply PKR {{ object.price }} . Now I need to understand how would a payment processor will determine what cu