2018-06-09 17:01:36 +00:00
|
|
|
from django.core.management.base import BaseCommand, CommandError
|
2019-07-23 13:16:03 +00:00
|
|
|
from chat.models import Entry
|
2018-06-09 17:01:36 +00:00
|
|
|
|
|
|
|
|
|
|
|
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()
|