So using your tip, I've done this:
class Foo1Bar(FooBar):
>
> objects = TypeAwareManager('foo__type',1)
>
> class Meta:
> proxy= True
>
> def change_fb(cls):
> old_foo = cls.foo
>
> @property
> def new_foo(self):
> return Foo1(self.old_fo
Thanks, I saw that .model thing too, but was also unsure about it... I
might just test it.
Em sábado, 21 de abril de 2012 19h04min30s UTC-3, akaariai escreveu:
>
> On Apr 21, 8:35 pm, Arruda wrote:
> > Should I create this many-to-many table as a normal model(no proxy) and
> set
> > the foo f
On Apr 21, 8:35 pm, Arruda wrote:
> Should I create this many-to-many table as a normal model(no proxy) and set
> the foo foreingkey to Foo1 instead of Foo?
> Or should I use only FooBar as many-to-many and create some specific
> queries that would convert ALL the returned foo objects as Foo1 inst
3 matches
Mail list logo