Hi I am using django 1.0 to redevelop a website. I have read http://docs.djangoproject.com/en/1.0/topics/db/queries/ and cant work out how to do my query except using raw sql. It would be great to be able to use the django query api so i can stack queries more easily.
Just one working example would be enough for me to be able to figure out the rest of the syntax i need. In this case the model is using a ForeignKey relationship between two tables, thus is a one to many relationship. the model.py code exists here: http://pastebin.com/m7ddf3bb8 the views.py code exists here: http://pastebin.com/m78daa247 I would like to be able to replace the customer sql cursor.generate methods. Any help would be appreciated and allow me to discover a lot more about django queries. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---