Skip to content

Commit

Permalink
Merge pull request #123 from DanSheps/116-fix-deletion-of-backup
Browse files Browse the repository at this point in the history
Fixes: #116 - Fix returned data from get_absolute_url
  • Loading branch information
DanSheps authored Feb 6, 2025
2 parents 822d2b0 + 291d42e commit 7add879
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions netbox_config_backup/models/jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

from django.db import models
from django.db.models import ForeignKey
from django.urls import reverse
from django.utils import timezone
from django.utils.translation import gettext as _

Expand Down Expand Up @@ -69,6 +70,9 @@ class BackupJob(NetBoxModel):
def __str__(self):
return str(self.job_id)

def get_absolute_url(self):
return None

@property
def queue(self):
return get_queue('netbox_config_backup.jobs')
Expand Down

0 comments on commit 7add879

Please sign in to comment.