mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
DataFile should not inherit from ChangeLoggingMixin
This commit is contained in:
@@ -228,11 +228,17 @@ class DataSource(PrimaryModel):
|
||||
return False
|
||||
|
||||
|
||||
class DataFile(ChangeLoggingMixin, models.Model):
|
||||
class DataFile(models.Model):
|
||||
"""
|
||||
The database representation of a remote file fetched from a remote DataSource. DataFile instances should be created,
|
||||
updated, or deleted only by calling DataSource.sync().
|
||||
"""
|
||||
created = models.DateTimeField(
|
||||
auto_now_add=True
|
||||
)
|
||||
last_updated = models.DateTimeField(
|
||||
editable=False
|
||||
)
|
||||
source = models.ForeignKey(
|
||||
to='core.DataSource',
|
||||
on_delete=models.CASCADE,
|
||||
@@ -244,9 +250,6 @@ class DataFile(ChangeLoggingMixin, models.Model):
|
||||
editable=False,
|
||||
help_text=_("File path relative to the data source's root")
|
||||
)
|
||||
last_updated = models.DateTimeField(
|
||||
editable=False
|
||||
)
|
||||
size = models.PositiveIntegerField(
|
||||
editable=False
|
||||
)
|
||||
|
Reference in New Issue
Block a user