Merge pull request #20764 from netbox-community/20378-del-script

#20378 fix delete of DataSource
This commit is contained in:
bctiemann 2025-11-06 20:14:29 -05:00 committed by GitHub
commit 95f8fe788d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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