title: <QuerySet []> is not JSON serializable - Django Session
body: <p>I am trying to set session but it is giving me error </p>
  
  <blockquote>
    <p> is not JSON serializable</p>
  </blockquote>
  
  <pre><code> self.request.session['acl_permissions'] = AclRoleAccess.objects.filter(
                  Q(acl_company=self.request.user.userprofile.user_company) &amp;
                  Q(acl_role=self.request.user.userprofile.user_role) &amp;
                  Q(acl_has_access=True)
              )
  
      if 'acl_permissions' in self.request.session:
                  acl_permissions = self.request.session['acl_permissions']
                  print(acl_permissions)
  </code></pre>
  
  <p>How can i store QuerySet in Session. And what will be right way?</p>