Re: Using managers for related object access

2008-12-05 Thread Luke Graybill
l" <[EMAIL PROTECTED]> wrote: > > I am attempting to use a custom manager for related object access, as > > documented here< > http://docs.djangoproject.com/en/dev/topics/db/managers/#using-manage...>, > > but it does not appear to be working properly. Upon

Re: Using managers for related object access

2008-12-04 Thread bruno desthuilliers
On 4 déc, 21:39, "Luke Graybill" <[EMAIL PROTECTED]> wrote: > I am attempting to use a custom manager for related object access, as > documented > here<http://docs.djangoproject.com/en/dev/topics/db/managers/#using-manage...>, > but it does not appear to be wo

Using managers for related object access

2008-12-04 Thread Luke Graybill
I am attempting to use a custom manager for related object access, as documented here<http://docs.djangoproject.com/en/dev/topics/db/managers/#using-managers-for-related-object-access>, but it does not appear to be working properly. Upon accessing the reverse relationship, I am gett

Re: related object access

2008-04-03 Thread Jared
> > Is it possible, from the table object to determine which cell objects > > are marked as being in row 1? > > Let's say your table object is t_obj. Then you can do: > > row_one_cells = t_obj.cell_set.filter(row=1) Is this callable from a template? I'm trying as much as possible to use the gene

Re: related object access

2008-04-03 Thread Rajesh Dhawan
Hi, On Apr 3, 5:16 pm, Jared <[EMAIL PROTECTED]> wrote: > I have something of an odd question, I think...  I have a couple of > objects setup something like this (there are more fields, but this > seems to be enough of a relevant example)... > > class table(models.Model): >     name = models.Char

related object access

2008-04-03 Thread Jared
I have something of an odd question, I think... I have a couple of objects setup something like this (there are more fields, but this seems to be enough of a relevant example)... class table(models.Model): name = models.CharField() class cell(models.Model): name = models.CharField()