khaganat-web/chat/management/commands/log_clean.py
Rodolphe Breard 5e7b176e39 Add a webchat
2019-07-23 15:16:03 +02:00

11 lines
316 B
Python

from django.core.management.base import BaseCommand, CommandError
from chat.models import Entry
class Command(BaseCommand):
help = 'Generates the CSS files used by Pygments'
def handle(self, *args, **options):
for e in Entry.objects.all():
if not e.created:
e.delete()