diff --git a/adserver/migrations/0097_ui_advertiser_reports.py b/adserver/migrations/0097_ui_advertiser_reports.py deleted file mode 100644 index fc9f027c..00000000 --- a/adserver/migrations/0097_ui_advertiser_reports.py +++ /dev/null @@ -1,45 +0,0 @@ -# Generated by Django 5.0.7 on 2024-08-20 16:49 - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ("adserver", "0096_simple_history_upgrade"), - ] - - operations = [ - migrations.AddField( - model_name="advertiser", - name="show_keyword_report", - field=models.BooleanField( - default=False, - help_text="Show the link to the Keyword Report in the advertiser dashboard", - ), - ), - migrations.AddField( - model_name="advertiser", - name="show_topic_report", - field=models.BooleanField( - default=False, - help_text="Show the link to the Topic Report in the advertiser dashboard", - ), - ), - migrations.AddField( - model_name="historicaladvertiser", - name="show_keyword_report", - field=models.BooleanField( - default=False, - help_text="Show the link to the Keyword Report in the advertiser dashboard", - ), - ), - migrations.AddField( - model_name="historicaladvertiser", - name="show_topic_report", - field=models.BooleanField( - default=False, - help_text="Show the link to the Topic Report in the advertiser dashboard", - ), - ), - ] diff --git a/adserver/models.py b/adserver/models.py index 240207ee..4d6de908 100644 --- a/adserver/models.py +++ b/adserver/models.py @@ -612,15 +612,6 @@ class Advertiser(TimeStampedModel, IndestructibleModel): default=None, ) - show_keyword_report = models.BooleanField( - default=False, - help_text=_("Show the link to the Keyword Report in the advertiser dashboard"), - ) - show_topic_report = models.BooleanField( - default=False, - help_text=_("Show the link to the Topic Report in the advertiser dashboard"), - ) - # Deprecated - will migration to `customer` stripe_customer_id = models.CharField( _("Stripe Customer ID"), max_length=200, blank=True, null=True, default=None diff --git a/adserver/templates/adserver/base.html b/adserver/templates/adserver/base.html index 3727f795..e7991522 100644 --- a/adserver/templates/adserver/base.html +++ b/adserver/templates/adserver/base.html @@ -104,7 +104,6 @@
{{ advertiser }}
{% trans 'Publishers' %} - {% if request.user.is_staff or advertiser.show_keyword_report %} - {% endif %} - - {% if request.user.is_staff or advertiser.show_topic_report %} - {% endif %}