Skip to content

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