Skip to content

Commit

Permalink
Merge pull request #64 from DanSheps/develop
Browse files Browse the repository at this point in the history
Bunch of 3.5 fixes
  • Loading branch information
DanSheps authored May 9, 2023
2 parents ceae672 + a6b2e63 commit db6c9be
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 60 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends 'netbox_config_backup/base.html' %}
{% extends 'generic/object.html' %}
{% load helpers %}

{% block subtitle %}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends 'netbox_config_backup/base.html' %}
{% extends 'generic/object.html' %}
{% load helpers %}

{% block subtitle %}
Expand Down
24 changes: 0 additions & 24 deletions netbox_config_backup/templates/netbox_config_backup/base.html

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends 'netbox_config_backup/base.html' %}
{% extends 'generic/object.html' %}

{% block content %}
<div class="row">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends 'netbox_config_backup/base.html' %}
{% extends 'generic/object.html' %}
{% load helpers %}

{% block subtitle %}
Expand Down

This file was deleted.

4 changes: 3 additions & 1 deletion netbox_config_backup/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ def get(self, request, pk, current=None):

return render(request, 'netbox_config_backup/config.html', {
'object': backup,
'tab': self.tab,
'backup_config': config,
'current': current,
'previous': previous,
Expand All @@ -177,7 +178,7 @@ class DiffView(ObjectView):
label='Diff',
)

def get(self, request, pk, current, previous=None):
def get(self, request, pk, current=None, previous=None):
backup = get_object_or_404(Backup.objects.all(), pk=pk)
if current:
current = get_object_or_404(BackupCommitTreeChange.objects.all(), pk=current)
Expand Down Expand Up @@ -223,6 +224,7 @@ def get(self, request, pk, current, previous=None):

return render(request, 'netbox_config_backup/diff.html', {
'object': backup,
'tab': self.tab,
'diff': diff,
'current': current,
'previous': previous,
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

setup(
name='netbox_config_backup',
version='1.4.2',
version='1.4.3',
description='NetBox Configuration Backup',
long_description='Plugin to backup device configuration',
url='https://github.com/dansheps/netbox-config-backup/',
Expand Down

0 comments on commit db6c9be

Please sign in to comment.