Thomas Steinacher wrote:
> gabor wrote:
>> Thomas Steinacher wrote:
>>> I already included
>>> "django.middleware.transaction.TransactionMiddleware" in my
>>> MIDDLEWARE_CLASSES (as described on
>>> http://www.djangoproject.com/documentation/transactions/#tying-transactions-to-http-requests)
>>> and it didn't help.
>>>
>> you mean it did not help with the money-transfer code?
>>
>> gabor
> 
> It did not help with the code I posted that was using get_or_create(),
> because I didn't use unique_together... I don't think it would help
> with the money-transfer code.
> 
> The documentation says:
> 
> "It works like this: When a request starts, Django starts a
> transaction. If the response is produced without problems, Django
> commits any pending transactions. If the view function produces an
> exception, Django rolls back any pending transactions."
> 
> The problem is that the code doesn't produce an exception, so Django
> will not roll back anything...
> 

ok, then maybe this is a misunderstanding, so let's restart the discussion:

what is your question? :)

gabor

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to django-developers@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-developers
-~----------~----~----~----~------~----~------~--~---

Reply via email to