From 2c828080c269df8efd3c0bbbfbf7f857303580e7 Mon Sep 17 00:00:00 2001 From: Mark Veidemanis Date: Fri, 10 Mar 2023 20:18:17 +0000 Subject: [PATCH] Fix help text for ad and add confirmation to nuke --- core/forms.py | 2 +- core/views/ads.py | 8 ++------ 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/core/forms.py b/core/forms.py index ea49d49..3713714 100644 --- a/core/forms.py +++ b/core/forms.py @@ -164,7 +164,7 @@ class AdForm(RestrictedFormMixin, ModelForm): "enabled", ) help_texts = { - "name": "The name of the aggregator connection.", + "name": "The name of the ad.", "text": "The content of the ad.", "payment_details": "Shown before a user opens a trade.", "payment_details_real": "Shown after a user opens a trade.", diff --git a/core/views/ads.py b/core/views/ads.py index 6d27e35..8770280 100644 --- a/core/views/ads.py +++ b/core/views/ads.py @@ -2,12 +2,7 @@ from django.contrib.auth.mixins import LoginRequiredMixin from django.shortcuts import render from django.urls import reverse from django.views import View -from mixins.views import ( - ObjectCreate, - ObjectDelete, - ObjectList, - ObjectUpdate, -) +from mixins.views import ObjectCreate, ObjectDelete, ObjectList, ObjectUpdate from two_factor.views.mixins import OTPRequiredMixin from core.clients.platforms.agora import AgoraClient @@ -91,6 +86,7 @@ class AdList(LoginRequiredMixin, OTPRequiredMixin, ObjectList): "method": "get", "label": "Nuke ads", "icon": "fa-solid fa-bomb", + "confirm": True, }, ] return context