--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/eSnLEH5uZBkJ.
To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Clear 'the cache' - as the side effect of performing a zero row update
on your model!
I wouldn't do that. The issue the user is hitting is that he is still
within his original transaction - there is no caching going on. Read
the documentation on managing transactions:
https://docs.djangoproject.com/en/1.3/topics/db/transactions/
In particular, how to completely disable transaction management, which
you would probably want to do on the desktop app, and manage them
manually if you need transactions.
Cheers
Tom
--
You received this message because you are subscribed to the Google Groups "Django users" group.
It's bad for future maintenance. Other developers may not know that
trick, and be confused why you are doing a 'pointless' update, without
grokking the unannounced side effect. It is always better to be
explicit rather than implicit.
Any UPDATE or INSERT will always commit the current transaction.
Cheers
Tom
Cheers
Tom
You're right, I hadn't had my coffee :/
Cheers
Tom