Skip to content

Commit 2383b25

Browse files
committed
Fixes: #126 - Fix BackupJobTable Meta datatype
1 parent f39ea34 commit 2383b25

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

netbox_config_backup/tables.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import django_tables2 as tables
22
from django_tables2.utils import Accessor
33

4-
from netbox_config_backup.models import Backup, BackupCommitTreeChange
4+
from netbox_config_backup.models import Backup, BackupCommitTreeChange, BackupJob
55
from netbox.tables import columns, BaseTable, NetBoxTable
66

77

@@ -44,7 +44,7 @@ class BackupJobTable(BaseTable):
4444
completed = tables.DateTimeColumn()
4545

4646
class Meta(BaseTable.Meta):
47-
model = Backup
47+
model = BackupJob
4848
fields = (
4949
'pk', 'backup', 'pid', 'created', 'scheduled', 'started', 'completed', 'status'
5050
)

0 commit comments

Comments
 (0)