Jeremy Stretch 7 лет назад
Родитель
Сommit
0a71c63583

+ 1 - 1
netbox/ipam/fields.py

@@ -16,7 +16,7 @@ class BaseIPField(models.Field):
     def python_type(self):
         return IPNetwork
 
-    def from_db_value(self, value, expression, connection, context):
+    def from_db_value(self, value, expression, connection):
         return self.to_python(value)
 
     def to_python(self, value):

+ 1 - 1
netbox/templates/500.html

@@ -1,4 +1,4 @@
-{% load static from staticfiles %}
+{% load static %}
 <!DOCTYPE html>
 <html lang="en">
 

+ 1 - 1
netbox/templates/_base.html

@@ -1,4 +1,4 @@
-{% load static from staticfiles %}
+{% load static %}
 {% load helpers %}
 <!DOCTYPE html>
 <html lang="en">

+ 1 - 1
netbox/templates/circuits/circuittermination_edit.html

@@ -1,5 +1,5 @@
 {% extends '_base.html' %}
-{% load staticfiles %}
+{% load static %}
 {% load form_helpers %}
 
 {% block content %}

+ 1 - 1
netbox/templates/circuits/provider.html

@@ -1,5 +1,5 @@
 {% extends '_base.html' %}
-{% load static from staticfiles %}
+{% load static %}
 {% load helpers %}
 
 {% block title %}{{ provider }}{% endblock %}

+ 1 - 1
netbox/templates/dcim/cable_connect.html

@@ -1,5 +1,5 @@
 {% extends '_base.html' %}
-{% load static from staticfiles %}
+{% load static %}
 {% load form_helpers %}
 
 {% block content %}

+ 1 - 1
netbox/templates/dcim/device.html

@@ -1,5 +1,5 @@
 {% extends '_base.html' %}
-{% load static from staticfiles %}
+{% load static %}
 {% load helpers %}
 
 {% block title %}{{ device }}{% endblock %}

+ 1 - 1
netbox/templates/dcim/device_config.html

@@ -1,5 +1,5 @@
 {% extends 'dcim/device.html' %}
-{% load staticfiles %}
+{% load static %}
 
 {% block title %}{{ device }} - Config{% endblock %}
 

+ 1 - 1
netbox/templates/dcim/device_status.html

@@ -1,5 +1,5 @@
 {% extends 'dcim/device.html' %}
-{% load staticfiles %}
+{% load static %}
 
 {% block title %}{{ device }} - Status{% endblock %}
 

+ 1 - 1
netbox/templates/dcim/site.html

@@ -1,5 +1,5 @@
 {% extends '_base.html' %}
-{% load static from staticfiles %}
+{% load static %}
 {% load tz %}
 {% load helpers %}
 

+ 1 - 1
netbox/templates/inc/ajax_loader.html

@@ -1,4 +1,4 @@
-{% load staticfiles %}
+{% load static %}
 <div class="loading text-center">
     <img src="{% static 'img/ajax-loader.gif' %}" />
 </div>

+ 1 - 1
netbox/templates/inc/nav_menu.html

@@ -1,4 +1,4 @@
-{% load static from staticfiles %}
+{% load static %}
 {% load helpers %}
 <nav class="navbar navbar-default navbar-fixed-top">
     <div class="container">

+ 1 - 1
netbox/templates/ipam/ipaddress_assign.html

@@ -1,5 +1,5 @@
 {% extends 'utilities/obj_edit.html' %}
-{% load static from staticfiles %}
+{% load static %}
 {% load form_helpers %}
 {% load helpers %}
 

+ 1 - 1
netbox/templates/ipam/ipaddress_bulk_add.html

@@ -1,5 +1,5 @@
 {% extends 'utilities/obj_edit.html' %}
-{% load static from staticfiles %}
+{% load static %}
 {% load form_helpers %}
 
 {% block title %}Bulk Add IP Addresses{% endblock %}

+ 1 - 1
netbox/templates/ipam/ipaddress_edit.html

@@ -1,5 +1,5 @@
 {% extends 'utilities/obj_edit.html' %}
-{% load static from staticfiles %}
+{% load static %}
 {% load form_helpers %}
 {% load helpers %}
 

+ 1 - 1
netbox/templates/secrets/secret.html

@@ -1,5 +1,5 @@
 {% extends '_base.html' %}
-{% load static from staticfiles %}
+{% load static %}
 {% load helpers %}
 {% load secret_helpers %}
 

+ 1 - 1
netbox/templates/secrets/secret_edit.html

@@ -1,5 +1,5 @@
 {% extends '_base.html' %}
-{% load static from staticfiles %}
+{% load static %}
 {% load form_helpers %}
 
 {% block content %}

+ 1 - 1
netbox/templates/secrets/secret_import.html

@@ -1,5 +1,5 @@
 {% extends 'utilities/obj_import.html' %}
-{% load static from staticfiles %}
+{% load static %}
 
 {% block content %}
 {{ block.super }}

+ 1 - 1
netbox/templates/tenancy/tenant_edit.html

@@ -1,5 +1,5 @@
 {% extends 'utilities/obj_edit.html' %}
-{% load static from staticfiles %}
+{% load static %}
 {% load form_helpers %}
 
 {% block form %}

+ 1 - 1
netbox/templates/users/userkey_edit.html

@@ -1,5 +1,5 @@
 {% extends 'users/_user.html' %}
-{% load static from staticfiles %}
+{% load static %}
 {% load form_helpers %}
 
 {% block title %}User Key{% endblock %}

+ 1 - 1
netbox/templates/virtualization/cluster_add_devices.html

@@ -1,5 +1,5 @@
 {% extends '_base.html' %}
-{% load static from staticfiles %}
+{% load static %}
 {% load form_helpers %}
 
 {% block content %}

+ 1 - 1
requirements.txt

@@ -1,4 +1,4 @@
-Django>=2.0,<2.1
+Django==2.1.3
 django-cors-headers==2.4.0
 django-debug-toolbar==1.10.1
 django-filter==2.0.0