Ajout d'un outil pour transformer tous les messages en spam
This commit is contained in:
5
src/scripts/set_spam_all_contactmessages.py
Normal file
5
src/scripts/set_spam_all_contactmessages.py
Normal file
@@ -0,0 +1,5 @@
|
||||
from agenda_culturel.models import ContactMessage
|
||||
|
||||
|
||||
def run():
|
||||
ContactMessage.objects.all().update(spam=True)
|
Reference in New Issue
Block a user