mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Add index for (source, path) to DataFile
This commit is contained in:
@@ -273,6 +273,9 @@ class DataFile(models.Model):
|
||||
name='%(app_label)s_%(class)s_unique_source_path'
|
||||
),
|
||||
)
|
||||
indexes = [
|
||||
models.Index(fields=('source', 'path'), name='core_datafile_source_path'),
|
||||
]
|
||||
|
||||
def __str__(self):
|
||||
return self.path
|
||||
|
||||
Reference in New Issue
Block a user