Skip to content

Commit 0a71c63

Browse files
committed
Upgraded to Django 2.1
1 parent b05171b commit 0a71c63

22 files changed

+22
-22
lines changed

netbox/ipam/fields.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class BaseIPField(models.Field):
1616
def python_type(self):
1717
return IPNetwork
1818

19-
def from_db_value(self, value, expression, connection, context):
19+
def from_db_value(self, value, expression, connection):
2020
return self.to_python(value)
2121

2222
def to_python(self, value):

netbox/templates/500.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{% load static from staticfiles %}
1+
{% load static %}
22
<!DOCTYPE html>
33
<html lang="en">
44

netbox/templates/_base.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{% load static from staticfiles %}
1+
{% load static %}
22
{% load helpers %}
33
<!DOCTYPE html>
44
<html lang="en">

netbox/templates/circuits/circuittermination_edit.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{% extends '_base.html' %}
2-
{% load staticfiles %}
2+
{% load static %}
33
{% load form_helpers %}
44

55
{% block content %}

netbox/templates/circuits/provider.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{% extends '_base.html' %}
2-
{% load static from staticfiles %}
2+
{% load static %}
33
{% load helpers %}
44

55
{% block title %}{{ provider }}{% endblock %}

netbox/templates/dcim/cable_connect.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{% extends '_base.html' %}
2-
{% load static from staticfiles %}
2+
{% load static %}
33
{% load form_helpers %}
44

55
{% block content %}

netbox/templates/dcim/device.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{% extends '_base.html' %}
2-
{% load static from staticfiles %}
2+
{% load static %}
33
{% load helpers %}
44

55
{% block title %}{{ device }}{% endblock %}

netbox/templates/dcim/device_config.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{% extends 'dcim/device.html' %}
2-
{% load staticfiles %}
2+
{% load static %}
33

44
{% block title %}{{ device }} - Config{% endblock %}
55

netbox/templates/dcim/device_status.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{% extends 'dcim/device.html' %}
2-
{% load staticfiles %}
2+
{% load static %}
33

44
{% block title %}{{ device }} - Status{% endblock %}
55

netbox/templates/dcim/site.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{% extends '_base.html' %}
2-
{% load static from staticfiles %}
2+
{% load static %}
33
{% load tz %}
44
{% load helpers %}
55

netbox/templates/inc/ajax_loader.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{% load staticfiles %}
1+
{% load static %}
22
<div class="loading text-center">
33
<img src="{% static 'img/ajax-loader.gif' %}" />
44
</div>

netbox/templates/inc/nav_menu.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{% load static from staticfiles %}
1+
{% load static %}
22
{% load helpers %}
33
<nav class="navbar navbar-default navbar-fixed-top">
44
<div class="container">

netbox/templates/ipam/ipaddress_assign.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{% extends 'utilities/obj_edit.html' %}
2-
{% load static from staticfiles %}
2+
{% load static %}
33
{% load form_helpers %}
44
{% load helpers %}
55

netbox/templates/ipam/ipaddress_bulk_add.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{% extends 'utilities/obj_edit.html' %}
2-
{% load static from staticfiles %}
2+
{% load static %}
33
{% load form_helpers %}
44

55
{% block title %}Bulk Add IP Addresses{% endblock %}

netbox/templates/ipam/ipaddress_edit.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{% extends 'utilities/obj_edit.html' %}
2-
{% load static from staticfiles %}
2+
{% load static %}
33
{% load form_helpers %}
44
{% load helpers %}
55

netbox/templates/secrets/secret.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{% extends '_base.html' %}
2-
{% load static from staticfiles %}
2+
{% load static %}
33
{% load helpers %}
44
{% load secret_helpers %}
55

netbox/templates/secrets/secret_edit.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{% extends '_base.html' %}
2-
{% load static from staticfiles %}
2+
{% load static %}
33
{% load form_helpers %}
44

55
{% block content %}

netbox/templates/secrets/secret_import.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{% extends 'utilities/obj_import.html' %}
2-
{% load static from staticfiles %}
2+
{% load static %}
33

44
{% block content %}
55
{{ block.super }}

netbox/templates/tenancy/tenant_edit.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{% extends 'utilities/obj_edit.html' %}
2-
{% load static from staticfiles %}
2+
{% load static %}
33
{% load form_helpers %}
44

55
{% block form %}

netbox/templates/users/userkey_edit.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{% extends 'users/_user.html' %}
2-
{% load static from staticfiles %}
2+
{% load static %}
33
{% load form_helpers %}
44

55
{% block title %}User Key{% endblock %}

netbox/templates/virtualization/cluster_add_devices.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{% extends '_base.html' %}
2-
{% load static from staticfiles %}
2+
{% load static %}
33
{% load form_helpers %}
44

55
{% block content %}

requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Django>=2.0,<2.1
1+
Django==2.1.3
22
django-cors-headers==2.4.0
33
django-debug-toolbar==1.10.1
44
django-filter==2.0.0

0 commit comments

Comments
 (0)