Hmm I would also be interested if anyone knows how to do this. On Jun 17, 3:05 pm, mbdtsmh <[EMAIL PROTECTED]> wrote: > Hello everyone, > > I have a question for you all that has been discussed before but I > cannot figure out the best way to go about implementing. > > I have the following model: > > class DesignSet(models.Model): > priority=models.ForeignKey(Priority) > status=models.ForeignKey(Status, default=2) > concept=models.DateField() > last_modified=models.DateField(auto_now = True) > project=models.ForeignKey(Project) > series=models.CharField(max_length=100) > > The last two lines are key. I want to be able to only see series (in > thefiltermenu of theadminpage) that are associated with a defined > project. > > There has been talk of using something like: > > def choices_for__FIELD(self): > return ModelClass.objects.filter(relation_name=self.relation) > > but I don't know whether this has been implemented yet and if it has I > can't seem to get it to work!!! > > Any help would be much appreciated. > > Regards, Martin
--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---