mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-05 13:19:28 +02:00
Removed django-cacheops dependency
This commit is contained in:
parent
9a8de804cf
commit
3a94462bd6
9 changed files with 12 additions and 29 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue