views:

59

answers:

1

Hi! Is there a way to declare this case so that it works? I hope the code is self-explanatory.

class A(Model):
    many_to_one = models.ForeignKey(B)
    (...)

class B(A):
    (...)    
+2  A: 
class A(Model):
    many_to_one = models.ForeignKey('B')
    (...)

class B(A):
    (...)
Ignacio Vazquez-Abrams
thx, I've missed it in the docs :(
virtuallight