From dd7dae69b1a45538b0281286bba8987f199a0e83 Mon Sep 17 00:00:00 2001 From: David Fischer Date: Fri, 1 Mar 2024 16:55:30 -0800 Subject: [PATCH] Display negative keywords in the targeting details --- adserver/models.py | 2 +- adserver/templates/adserver/includes/flight-metadata.html | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/adserver/models.py b/adserver/models.py index befe83bc..87fd242d 100644 --- a/adserver/models.py +++ b/adserver/models.py @@ -1131,7 +1131,7 @@ def show_to_keywords(self, keywords): return False if self.excluded_keywords: - # If any keyworks from the page in the exclude list, don't show this flight + # If any keywords from the page in the exclude list, don't show this flight if keyword_set.intersection(self.excluded_keywords): return False diff --git a/adserver/templates/adserver/includes/flight-metadata.html b/adserver/templates/adserver/includes/flight-metadata.html index 05dc97d0..7297e1bd 100644 --- a/adserver/templates/adserver/includes/flight-metadata.html +++ b/adserver/templates/adserver/includes/flight-metadata.html @@ -106,6 +106,9 @@ {% if flight.targeting_parameters.include_keywords %}
  • {% blocktrans with value=flight.targeting_parameters.include_keywords|join:", " %}Include keywords: {{ value }}{% endblocktrans %}
  • {% endif %} + {% if flight.targeting_parameters.exclude_keywords %} +
  • {% blocktrans with value=flight.targeting_parameters.exclude_keywords|join:", " %}Exclude keywords: {{ value }}{% endblocktrans %}
  • + {% endif %} {% if flight.targeting_parameters.include_publishers %}
  • {% blocktrans with value=flight.targeting_parameters.include_publishers|join:", " %}Include publishers: {{ value }}{% endblocktrans %}
  • {% endif %}