> Meanwhile I can construct the SQL by hand easily enough, but I feel this
> isn't doing things the right way.
I've had this discussion with other developers. Many feel they need to
slavishly adhere to the ORM and if you don't you're some type of evil
entity. I could not disagree more. Django and the ORM are tools, and
should be used only when they are the right tools for the job. I'd
just go ahead and do the delete in SQL.
I don't think SQL is evil, but there are lots of reasons why mixing programming languages (and abstraction levels) to solve a problem isn't really ideal.
From a very personal point of view I'd like to see archaic languages like SQL go away for ever one day, in the meantime I completely agree that if the ORM doesn't do what's needed then the right choice is to go with whatever tools will :-)
thanks
George
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/-/x6y5ORLtg3wJ.
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