Skip to content

Commit ae9fcfe

Browse files
Add an action menu to remove stop phrases that are no longer used.
1 parent cd09a17 commit ae9fcfe

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

settings/admin.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
from crm.site.crmadminsite import crm_site
44
from settings.models import BannedCompanyName
55
from settings.models import PublicEmailDomain
6-
from settings.models import StopPhrase
76
from settings.models import Reminders
7+
from settings.models import StopPhrase
88

99

1010
class BannedCompanyNameAdmin(admin.ModelAdmin):
@@ -29,6 +29,7 @@ def has_delete_permission(self, request, obj=None):
2929

3030

3131
class StopPhraseAdmin(admin.ModelAdmin):
32+
actions = ['delete_selected']
3233
list_display = ('phrase', 'last_occurrence_date')
3334
search_fields = ('phrase',)
3435

0 commit comments

Comments
 (0)