Merge pull request #92 from goodmase/master

Fixed autologflush for django 1.10
This commit is contained in:
Jan-Jelle Kester 2017-02-09 20:03:27 +01:00 committed by GitHub
commit c17d45a13c

View file

@ -1,13 +1,13 @@
from django.core.management.base import NoArgsCommand
from django.core.management.base import BaseCommand
from six import moves
from auditlog.models import LogEntry
class Command(NoArgsCommand):
class Command(BaseCommand):
help = 'Deletes all log entries from the database.'
def handle_noargs(self, **options):
def handle(self, *args, **options):
answer = None
while answer not in ['', 'y', 'n']: