Re: Help: Custom ManyRelatedManager Behavior

2010-06-10 Thread Alex Robbins
I recently ran into this same problem (I wanted to only show related episodes that had been marked live). I ended up just making a method on Podcasts to do it. class Podcast(models.Model): ...some data fields... def live_episodes(self): return self.episode_set.filter(live=True) class Epi

Re: Help: Custom ManyRelatedManager Behavior

2010-06-09 Thread tsmets
I seem to hit a similar problem A News or Comment may have multiple Authors I would like the representation of the News / Comment to display the list of authors So I coded this : [code] def __unicode__(self): return self.title + " : " + self.txt [0:20] + ' ... (Authors : ' + show_authors

Help: Custom ManyRelatedManager Behavior

2010-05-31 Thread Tim
Hi, I am having trouble getting the behavior I would like from a ManyRelatedManager. I have a many to many relationship with User and ModelB, with a join table ModelJ. Instead of deleting items in my database, I am simply marking them as deleted. I have a custom manager that filters out deleted ob