title: Django:The QuerySet value for an exact lookup must be limited to one result using slicing
body: <p>I am working on a project where admin can assign team to manager. But it is not working and i have no idea how it will work. Because it is raising an error saying "The QuerySet value for an exact lookup must be limited to one result using slicing."</p>
  
  <p>Here is my model.py</p>
  
  <pre><code>class manager(models.Model):
  name = models.CharField(max_length= 500)
  designation = models.CharField(max_length= 500)
  user = models.ForeignKey(User,on_delete=models.CASCADE)
  class Meta:
      permissions = [
          ("edit_task", "can edit the task"),
      ]
  </code></pre>
  
  <p>here is my views.py file for the teams of manager</p>
  
  <pre><code>@login_required (login_url= 'have the url where it will go')
  @permission_required('have the permission that is assigned by me')
  def supervisor(request):
  return render(request, 'manager/index-3.html')
  
  def supervisor_team(request):
  print(request.user.email)
  email=request.user.email
  obj= Create_Team.objects.filter(status='Accept', 
  managers=manager.objects.filter(user__email=email))
  return render(request, "manager/accept_team.html", {"object": obj})
  </code></pre>
  
  <p>here is my template</p>
  
  <pre><code>&lt;div class="body table-responsive"&gt;
                          &lt;table class="table table-hover"&gt;
                              &lt;thead&gt;
                                  &lt;tr&gt;
                                      &lt;th&gt;S No.&lt;/th&gt;
                                      &lt;th&gt;COMPANY NAME&lt;/th&gt;
                                      &lt;th&gt;TEAM MEMBER&lt;/th&gt;
                                      &lt;th&gt;EMAIL&lt;/th&gt;
                                  &lt;/tr&gt;
                              &lt;/thead&gt;
                              &lt;tbody&gt;
  
                                      {%for object in team%}
                                  &lt;tr&gt;
                                          &lt;form id="form_id" method="POST" action = "#"&gt;
                                              {% csrf_token %}
  
                                      &lt;th scope="row"&gt; {{ forloop.counter }}&lt;/th&gt;
                                      &lt;td&gt;{{object.company_name}}&lt;/td&gt;
                                      &lt;td&gt;{{object.team_member}}&lt;/td&gt;
                                      &lt;td&gt;{{object.email}}&lt;/td&gt;
                                      &lt;td&gt;
                                  &lt;/tr&gt;
  
                                  {% endfor %}
  
                              &lt;/tbody&gt;
                          &lt;/table&gt;
                      &lt;/div&gt;
  </code></pre>
  
  <p>I have no idea where i am wrong.<a href="https://i.stack.imgur.com/zVHZF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/zVHZF.png" alt="here is the image of the error"></a></p>