Commits

Anton Smirnov  committed e030f73

don't save duplicated user info as api_response into the session

  • Participants
  • Parent commits d4a4ef7

Comments (0)

Files changed (1)

File vk_iframe/middleware.py

             if hasattr(request, 'session'):
                 if lang_code:
                     request.session['django_language'] = lang_code
-                request.session['vk_startup_vars'] = vk_form.cleaned_data
+
+                startup_vars = vk_form.cleaned_data
+                # этот большой кусок сохранять в сессию не будем, он уже есть в vk_profile
+                del startup_vars['api_result']
+                request.session['vk_startup_vars'] = startup_vars
 
         else:
             request.META['VKONTAKTE_LOGIN_ERRORS'] = vk_form.errors