def clear_old_admin_logs():
    logs = LogEntry.objects.all()
    for i in range(2000, len(logs)):
        logs[i].delete()
def clear_old_admin_logs():
    logs = LogEntry.objects.all()
    for i in range(2000, len(logs)):
        logs[i].delete()