Hi, It should be possible to re-write you select statement using the Django ORM, but there's not an automatic way to convert it. There's also raw() which might take the statement as is. https://docs.djangoproject.com/en/dev/topics/db/sql/
Collin On Wednesday, January 14, 2015 at 11:05:08 AM UTC-5, fred wrote: > > Although I have not tried it, the docs are pretty clear about how to > sync a django model to an existing legacy DB (sqlserver08 in this case). > > > > But is there a way to sync to a select statement with multi-table joins > without first creating a View? > > > > I know that creating a view would be easiest, but I’ve got some > policy/security issues in my organization that require jumping through > additional hoops and am hoping there is some Django “magic” to solve this. > > > > Thanks, > > > > Fred. > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/0621324f-f7bc-4ed5-9b3b-3f5869d9c5f9%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

