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

Updated setting of site and root_url variables #5

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

abendig
Copy link

@abendig abendig commented May 21, 2015

In https://github.com/arctelix/django-invitation/blob/master/invitation/models.py the statement site = Site.objects.get_current() results in an exception AppRegistryNotReady: Models aren't loaded yet. being raised on Django 1.7, which means site and root_url are never set.

The changes proposed with this pull request move those two variables inside the InvitationKey class. Also included a little cleanup for spacing and line lengths.

@arctelix
Copy link
Owner

Thanks for this. I will be migrating some apps to 1.7 soon and will pull this in at that time.

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

Successfully merging this pull request may close these issues.

2 participants