title: Redirect page has other pk
body: <p>Hello I am making a website, I have a problem. When I redirect user after decreasing item quantity the &quot;pk&quot; becomes pk of item, and does not keep &quot;pk&quot; of cart. What should I do it to keep 'cart-page' from not changing &quot;pk&quot;.
  HTML:</p>
  <pre><code>{% for item in order_items %}
                          &lt;div action class=&quot;item-row&quot;&gt;
                              &lt;p class=&quot;cart-item&quot;&gt;{{ item.item.title }}&lt;/p&gt;
                              &lt;div class=&quot;cart-item item-quantity&quot;&gt;&lt;p&gt;{{item.quantity}}&lt;/p&gt;&lt;/div&gt;
                              &lt;p class=&quot;cart-item&quot;&gt;{{ item.total }}&lt;/p&gt;
                              &lt;form action=&quot;{% url 'cart-page' pk=item.id %}&quot; method=&quot;POST&quot;&gt; {% csrf_token %}
                                  &lt;button name=&quot;minus&quot;&gt;-&lt;/button&gt;
                                  &lt;button name=&quot;plus&quot;&gt;+&lt;/button&gt;
                              &lt;/form&gt;
                          &lt;/div&gt;
                      {% endfor %}
  </code></pre>
  <p>views.py</p>
  <pre><code>class CartView(TemplateView):
      template_name = &quot;shop/cart.html&quot;
      def get_context_data(self, **kwargs):
          context = super().get_context_data(**kwargs)
          context['cart'] = Cart.objects.annotate(
          price=Sum(F('orderitem__item__price') * F('orderitem__quantity'))
          ).get(order_user= self.request.user)
          cart = context['cart']
          cart.total = cart.price
          cart.save()
          context['order_items'] = OrderItem.objects.filter(cart=cart)
          return context
      def post(self, request, pk):
          if 'minus' in request.POST:
              cart = Cart.objects.get(order_user=self.request.user)
              OrderItem.objects.filter(id=pk, cart=cart).update(
              quantity=F('quantity')-1)
              return HttpResponse(&quot;cart uptaded&quot;)
          if 'plus' in request.POST:
              cart = Cart.objects.get(order_user=self.request.user)
              OrderItem.objects.filter(id=pk, cart=cart).update(
              quantity=F('quantity')+1)
              return redirect('cart-page')
  </code></pre>