Re: Generic relationships between existing entities, many2many

2012-02-08 Thread arkai...@gmail.com
Hi, Maybe I focused too much on the type of solution I was looking for and not on the problem itself. Let's try with music: I have a Bands application with a Band model that can be used for CRUD of band entity and for voting bands, commenting on them etc.. I have a Venue application with a

Re: Generic relationships between existing entities, many2many

2012-02-07 Thread akaariai
A pretty good way to do this is using custom hand-written generic foreign key. You basically need fields "type" (which can be just a string) and the related object's id. And then implement everything needed by yourself. Whatever you do you will have problems. There is no way to get all the