{ "info": { "author": "Paul Maigutyak", "author_email": "pmaigutyak@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "# MP-Shop | Comparison\n\n### Installation:\n\n1) Install using PIP:\n```\npip install django-mp-shop-comparison\n```\n\n2) Add `'comparison'` to `INSTALLED_APPS`.\n\n3) Add `'comparison.middleware.ComparisonMiddleware'` to `MIDDLEWARE`.\n\n4) Add `path('comparison/', include('comparison.urls'))` to `urlpatterns`.\n\n### Template examples:\n\n```\n{% load comparison %}\n```\n\n```\n{% if_product_in_comparison object.id %}\n \n Remove\n \n{% else %}\n \n Add\n \n{% endif %}\n```\n\n```\n{% if_product_in_comparison product_id %}\n Product in comparison\n{% endif %}\n```\n\n```\nThere are {{ request.comparison|length }} products in comparison\n```\n\n```\n{% if not request.comparison.is_empty %}\n