Re: Mutli-Assignable Models

2009-02-17 Thread Peter Herndon
On Mon, Feb 16, 2009 at 1:20 PM, Justin Lilly wrote: > > Hi Peter, > > While your proposed solution would work for the prototyping example > I've given, I have 3 more arching themes like Show and probably > another 4-5 content types like photo and articles. The main idea

Re: Mutli-Assignable Models

2009-02-16 Thread Justin Lilly
Hi Peter, While your proposed solution would work for the prototyping example I've given, I have 3 more arching themes like Show and probably another 4-5 content types like photo and articles. The main idea here is to be able to select an arbitrary element, be it a photo, video, article, etc.

Re: Mutli-Assignable Models

2009-02-15 Thread Peter Herndon
Hi Justin, I can't view your code at the moment, but it seems to me you want a ForeignKey on Article to Show, another FK on Photo to Show, an M2M from Article to Photo, and a custom manager on Show, or some other custom method, that returns both Articles and Photos. The latter might best be

Mutli-Assignable Models

2009-02-12 Thread Justin Lilly
Hi all. I have a project where I need to assign multiple models to each other via some many to many relationship. There are a few main players in my prototype: Articles, Photos and Shows. Shows has many Articles and Photos. Article has many Photos, but has one Show. Photos has one