Note to self: Don't try to fix error in a rush. Really fix 'document fs delete links'
This commit is contained in:
@@ -8,8 +8,6 @@ from django.db import models
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
from django.db.models import Q
|
||||
|
||||
from filesystem_serving.api import document_delete_fs_links
|
||||
|
||||
from dynamic_search.api import register
|
||||
|
||||
from documents.conf.settings import AVAILABLE_FUNCTIONS
|
||||
@@ -142,13 +140,6 @@ class Document(models.Model):
|
||||
return self.file.storage.exists(self.file.url)
|
||||
|
||||
|
||||
def delete(self, *args, **kwargs):
|
||||
#TODO: Might not execute when done in bulk from a queryset
|
||||
#topics/db/queries.html#topics-db-queries-delete
|
||||
document_delete_fs_links(self)
|
||||
super(Document, self).delete(*args, **kwargs)
|
||||
|
||||
|
||||
def get_metadata_groups(self):
|
||||
errors = []
|
||||
metadata_groups = {}
|
||||
|
||||
Reference in New Issue
Block a user