Questions like this should be directed to the django-users group.
Django-developers is for discussing the development of django itself,
not development using Django.
But to answer your question, try wrapping your ForeignKey reference in quotes:
b_primary = models.ForeignKey("B")
--
----
Waylan Limberg
way...@gmail.com