Lucian
-- On Tue, Sep 27, 2011 at 4:30 PM, Thomas Guettler <hv@tbz-pariv.de> wrote:
Hi,
it seems, that the django ORM can only do deletes which result in a lot
of SQL-Queries to do "on delete cascade" in python code.
https://docs.djangoproject.com/en/1.3/ref/models/querysets/#delete
Is there a way to leave this up to the database?
I know that you can give the ForeignKey the on_delete argument. But what
can you do, if you want this only for one delete call, not always?
Thomas
--
Thomas Guettler, http://www.thomas-guettler.de/
E-Mail: guettli (*) thomas-guettler + de
--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
No comments:
Post a Comment