import plata

def plata_context(request):
    """
    Adds a few variables from Plata to the context if they are available:

    * ``plata.shop``: The current :class:`plata.shop.views.Shop` instance
    * ``plata.order``: The current order
    * ``plata.contact``: The current contact instance
    """

    shop = plata.shop_instance()
    if not shop:
        return {}

    return {'plata': {
        'shop': shop,
        'order': shop.order_from_request(request),
        'contact': shop.contact_from_user(request.user),
        }}

import plata

def plata_context(request):
    """
    Adds a few variables from Plata to the context if they are available:

    * ``plata.shop``: The current :class:`plata.shop.views.Shop` instance
    * ``plata.order``: The current order
    * ``plata.contact``: The current contact instance
    * ``plata.price_includes_tax``: Whether prices include tax or not
    """

    shop = plata.shop_instance()
    if not shop:
        return {}

    return {'plata': {
        'shop': shop,
        'order': shop.order_from_request(request),
        'contact': shop.contact_from_user(request.user),
        'price_includes_tax': plata.settings.PLATA_PRICE_INCLUDES_TAX,
        }}

Add the variable `plata.price_includes_tax` to the template context
Add the variable `plata.price_includes_tax` to the template context

  import plata
  
  def plata_context(request):
      """
      Adds a few variables from Plata to the context if they are available:
  
      * ``plata.shop``: The current :class:`plata.shop.views.Shop` instance
      * ``plata.order``: The current order
      * ``plata.contact``: The current contact instance
+     * ``plata.price_includes_tax``: Whether prices include tax or not
      """
  
      shop = plata.shop_instance()
      if not shop:
          return {}
  
      return {'plata': {
          'shop': shop,
          'order': shop.order_from_request(request),
          'contact': shop.contact_from_user(request.user),
+         'price_includes_tax': plata.settings.PLATA_PRICE_INCLUDES_TAX,
          }}
  
Add the variable `plata.price_includes_tax` to the template context
## Code Before:
import plata

def plata_context(request):
    """
    Adds a few variables from Plata to the context if they are available:

    * ``plata.shop``: The current :class:`plata.shop.views.Shop` instance
    * ``plata.order``: The current order
    * ``plata.contact``: The current contact instance
    """

    shop = plata.shop_instance()
    if not shop:
        return {}

    return {'plata': {
        'shop': shop,
        'order': shop.order_from_request(request),
        'contact': shop.contact_from_user(request.user),
        }}

## Instruction:
Add the variable `plata.price_includes_tax` to the template context
## Code After:
import plata

def plata_context(request):
    """
    Adds a few variables from Plata to the context if they are available:

    * ``plata.shop``: The current :class:`plata.shop.views.Shop` instance
    * ``plata.order``: The current order
    * ``plata.contact``: The current contact instance
    * ``plata.price_includes_tax``: Whether prices include tax or not
    """

    shop = plata.shop_instance()
    if not shop:
        return {}

    return {'plata': {
        'shop': shop,
        'order': shop.order_from_request(request),
        'contact': shop.contact_from_user(request.user),
        'price_includes_tax': plata.settings.PLATA_PRICE_INCLUDES_TAX,
        }}
