khaganat-web/logs/management/commands/log_clean.py
2018-06-09 19:01:36 +02:00

11 lines
316 B
Python

from django.core.management.base import BaseCommand, CommandError
from logs.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()