I have the following model (http://dpaste.com/89869/).  The model is
for a status report application I'm trying to create at work (so I
don't have to do powerpoints).  So each report, has several tasks /
milestones associated with it.

My problem is when I use a related set, the custom manager methods
don't work.

For example,

Report 1 has tasks 1, 2, 3 associated with them, which task 1 is a
milestone, 2 and 3 are both next steps (per the filter in the model.

Report 2 has tasks 4, 5, 6 associated with them, same types as above.

So Report1.task_set.all() works great, and gives me only tasks 1-3.
Report2.task_set, same thing.

However, If I ask for Report1.milestones() I get all the milestones
for all the reports, uggh.  Same on the other manager methods
(milestones and nextsteps)

What am I doing wrong?

I can work around this for now, but was hoping it's something i'm
doing wrong.

Thanks

John
--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to