diff --git a/lambdainst/views.py b/lambdainst/views.py index 3ae1b1f..9bf0ab1 100644 --- a/lambdainst/views.py +++ b/lambdainst/views.py @@ -98,6 +98,12 @@ def signup(request): ) user.save() + try: + user.vpnuser + except VPNUser.DoesNotExist: + user.vpnuser = VPNUser.objects.create(user=user) + user.vpnuser.save() + try: user.vpnuser.referrer = User.objects.get(id=request.session.get("referrer")) except User.DoesNotExist: