very interesting query... i need some help

2009-08-07 Thread talpay...@gmail.com
i have come up with one of the most interesting query i have ever seen. I want to do this : products = products.filter(productdetail__detail_value__gte = first_value) products = products.filter(productdetail__detail_value__lte = second_value) where first_value and second_value are integers and

what is up with InternalError current transaction is aborted, commands ignored until end of transaction block

2010-02-22 Thread talpay...@gmail.com
I have search far and wide for some help regarding the Internal Error and i can't find any help. I have absolutely no idea why this is showing it doesn't make any sens. I just want a way to catch it but that is impossible. I would appreciate any help. Traceback: File "C:\Python26\Lib\site-package

Re: what is up with InternalError current transaction is aborted, commands ignored until end of transaction block

2010-02-22 Thread talpay...@gmail.com
i actually found a solution. i don't know what the problem is... and it wouldn't mater anyway. I just wanted to catch and show a message about it. You should you something like this: from django.db import transaction @transaction.commit_manually def view(request): try: #do something w