Skip to content

Commit

Permalink
Merge pull request #71 from giussepi/django-1.11
Browse files Browse the repository at this point in the history
Django 1.11
  • Loading branch information
bee-keeper committed Apr 20, 2017
2 parents 9ee3196 + 40ca90f commit 028ada2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.DS_Store
*.pyc
*.py~
.tox/
dist/
.coverage/
Expand Down
5 changes: 2 additions & 3 deletions invitations/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
from django.utils.encoding import python_2_unicode_compatible
from django.contrib.sites.models import Site
from django.conf import settings
from django.template.context import RequestContext
try:
from django.urls import reverse
except ImportError:
Expand Down Expand Up @@ -56,13 +55,13 @@ def send_invitation(self, request, **kwargs):
args=[self.key])
invite_url = request.build_absolute_uri(invite_url)

ctx = RequestContext(request, {
ctx = {
'invite_url': invite_url,
'site_name': current_site.name,
'email': self.email,
'key': self.key,
'inviter': self.inviter,
})
}

email_template = 'invitations/email/email_invite'

Expand Down

0 comments on commit 028ada2

Please sign in to comment.