How can I execute raw SQL in ModelForm.save()? I am using Django 1.3 / Postgresl 8.3 with contrib.admin without TransactionMiddleware. If I use connection.cursor() in ModelForm.save() (called by admin view which is using @transaction.commit_on_success), the cursor is created within a new Postgres session (according to Postgres log - session id). I need to do everything in one transaction. It seems that if a transaction is open in connection, connection.cursor() creates a new session, is it possible? How to do everything in one transaction/ session?
This was already asked here http://groups.google.com/group/django-users/browse_thread/thread/20056ca45701cfd6?pli=1 but never answered. Radim -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.