#20378 fix delete of DataSource

This commit is contained in:
Arthur 2025-11-06 15:57:07 -08:00
parent 3cdc6251be
commit 588c069ff1

View File

@ -6,7 +6,6 @@ from django.conf import settings
from django.core.exceptions import ValidationError from django.core.exceptions import ValidationError
from django.db import models from django.db import models
from django.core.files.storage import storages from django.core.files.storage import storages
from django.urls import reverse
from django.utils.translation import gettext as _ from django.utils.translation import gettext as _
from ..choices import ManagedFileRootPathChoices from ..choices import ManagedFileRootPathChoices
@ -64,9 +63,6 @@ class ManagedFile(SyncedDataMixin, models.Model):
def __str__(self): def __str__(self):
return self.name return self.name
def get_absolute_url(self):
return reverse('core:managedfile', args=[self.pk])
@property @property
def name(self): def name(self):
return self.file_path return self.file_path