Re: How to write joins ?

2011-01-27 Thread sushanth Reddy
Thanks a ton sam... -- 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,

Re: How to write joins ?

2011-01-27 Thread Sam Lai
On 28 January 2011 16:07, sushanth Reddy wrote: > hi Sam, > > Here is example model: > > class Profile(models.Model): > name = models.CharField(max_length=50, primary_key=True) > assign = models.CharField(max_length=50) > doj = models.DateField() > dob = models.DateField() > >

Re: How to write joins ?

2011-01-27 Thread sushanth Reddy
hi Sam, Here is example model: class Profile(models.Model): name = models.CharField(max_length=50, primary_key=True) assign = models.CharField(max_length=50) doj = models.DateField() dob = models.DateField() class Meta: db_table = u'profile' def __str__(sel

Re: How to write joins ?

2011-01-27 Thread Sam Lai
On 28 January 2011 12:16, sushanth Reddy wrote: > HI, > > How to write joins in django,i have gone through below django documentation > ,but joins are not working for my model > > Class working(models.model) >   w_name =models.ForeignKey(Profile, db_colu

How to write joins ?

2011-01-27 Thread sushanth Reddy
HI, How to write joins in django,i have gone through below django documentation ,but joins are not working for my model http://www.djangoproject.com/documentation/models/many_to_many/ http://docs.djangoproject.com/en/1.2/topics/db/queries/#lookups-that-span-relationships and some blogs My