Removed django-cacheops dependency

This commit is contained in:
Eliot Berriot 2018-07-21 12:57:48 +02:00
parent 9a8de804cf
commit 3a94462bd6
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
9 changed files with 12 additions and 29 deletions

View file

@ -1,4 +1,3 @@
import cacheops
from django.core.management.base import BaseCommand
from django.db import transaction
from django.db.models import Q
@ -24,7 +23,6 @@ class Command(BaseCommand):
self.fix_mimetypes(**options)
self.fix_file_data(**options)
self.fix_file_size(**options)
cacheops.invalidate_model(models.TrackFile)
@transaction.atomic
def fix_mimetypes(self, dry_run, **kwargs):