'Test for issue 10405'

def test_valid_loading_order(self):

    class A(models.Model, ):
        ref = models.ForeignKey(u'B')
    class B(models.Model, ):
        pass
    class Meta:
        model = A
        fields = u'__all__'
    self.assertTrue(issubclass(ModelFormMetaclass(str(u'Form'), (ModelForm,), {u'Meta': Meta}), ModelForm))
