Upgraded to Django 2.1

This commit is contained in:
Jeremy Stretch 2018-11-02 14:42:15 -04:00
parent b05171b126
commit 0a71c63583
22 changed files with 22 additions and 22 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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