Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problems with moving out models #397

Closed
uruz opened this issue Jul 13, 2012 · 3 comments
Closed

Problems with moving out models #397

uruz opened this issue Jul 13, 2012 · 3 comments

Comments

@uruz
Copy link
Contributor

uruz commented Jul 13, 2012

When I updated from 7b4f32f to HEAD, my application started to fail with the following error:myapp.sociallink: 'social_auth' has a relation with model <class 'social_auth.db.django_models.UserSocialAuth'>,
which has either not been installed or is abstract.

I have a simple model in my application, it looks like that:

class SocialLink(models.Model):
    social_auth = models.ForeignKey('social_auth.UserSocialAuth', blank=False, null=True, related_name='sociallinks')
    picture = models.ForeignKey(Picture, blank=False, null=True)

(picture is another model).

@omab
Copy link
Owner

omab commented Jul 13, 2012

What happens if you import UserSocialAuth and use that in the ForeignKey?

@uruz
Copy link
Contributor Author

uruz commented Jul 13, 2012

It does not matter if I do from social_auth.db.django_models import UserSocialAuth or from social_auth.models import UserSocialAuth or use a string in ForeignKey: error is always the same. Should I attempt to write a failing test case?

@omab omab closed this as completed in 8b35632 Jul 14, 2012
@omab
Copy link
Owner

omab commented Jul 14, 2012

@uruz, that last changeset should have fixed it.

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants