KristianOellegaard/django-hvad — pull request #22 by clelland (2012-02-15 22:00:15+00:00)
Title: Issue with forward-declared foreign keys

It seems that the check for multiple instances of TranslationModels also catches the case where there is a pre-existing foreign key from a TranslatableModel to the model being created.

I'm guessing that when the first (ForwardRelated) model is created, Django is creating a ReverseRelatedObjectsDescriptor to attach to the second (ReverseRelated) model. Then when the second model is actually created, the multiple translation model check is failing because of the reverse descriptor.

I didn't add an explicit unit test for this; just adding these two models into testproject/app/models.py is enough to stop the tests from being runnable.