Commits

Marko Mrdjenovic  committed 6d419db

fixed a stupid bug in invitation backend

  • Participants
  • Parent commits b1f099a

Comments (0)

Files changed (1)

File registration/backends/invitational/__init__.py

         user, email = request.user, kwargs['email']
         if user.is_authenticated():
             site = get_current_site(request)
-            return invitation_model_class.objects.send_invitation(user, 
+            return self.invitation_model_class.objects.send_invitation(user, 
                                                                   email, site)
         return None
     
         if not getattr(settings, 'REGISTRATION_OPEN', False):
             try:
                 if request.GET.get("invitation_key"):
-                    invite = invitation_model_class.objects.get(invitation_key=request.GET.get("invitation_key"))
+                    invite = self.invitation_model_class.objects.get(invitation_key=request.GET.get("invitation_key"))
                     return True
                 else:
                     return False
-            except invitation_model_class.DoesNotExist:
+            except self.invitation_model_class.DoesNotExist:
                 return False
         return True