Skip to content

Commit

Permalink
Correct links to the advertiser overview screen
Browse files Browse the repository at this point in the history
  • Loading branch information
davidfischer committed Oct 10, 2023
1 parent b3df592 commit 97d8b8d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion adserver/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -613,7 +613,7 @@ def __str__(self):
return self.name

def get_absolute_url(self):
return reverse("advertiser_report", kwargs={"advertiser_slug": self.slug})
return reverse("advertiser_main", kwargs={"advertiser_slug": self.slug})


class Campaign(TimeStampedModel, IndestructibleModel):
Expand Down
3 changes: 2 additions & 1 deletion adserver/templates/adserver/reports/advertiser-flight.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@

{% block breadcrumbs %}
{{ block.super }}
<li class="breadcrumb-item"><a href="{% url 'advertiser_report' advertiser.slug %}">{{ advertiser.name }}</a></li>
<li class="breadcrumb-item"><a href="{% url 'advertiser_main' advertiser.slug %}">{{ advertiser.name }}</a></li>
<li class="breadcrumb-item"><a href="{% url 'advertiser_report' advertiser.slug %}">{% trans 'Reports' %}</a></li>
<li class="breadcrumb-item active">{{ flight }}</li>
{% endblock breadcrumbs %}

Expand Down

0 comments on commit 97d8b8d

Please sign in to comment.