{% csrf_token %} {% if object in cart.products.all %} {% else %} {% endif %}