mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-14 01:41:22 -06:00
Upgraded to Django 2.1
This commit is contained in:
parent
b05171b126
commit
0a71c63583
@ -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,4 +1,4 @@
|
||||
{% load static from staticfiles %}
|
||||
{% load static %}
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
{% load static from staticfiles %}
|
||||
{% load static %}
|
||||
{% load helpers %}
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
@ -1,5 +1,5 @@
|
||||
{% extends '_base.html' %}
|
||||
{% load staticfiles %}
|
||||
{% load static %}
|
||||
{% load form_helpers %}
|
||||
|
||||
{% block content %}
|
||||
|
@ -1,5 +1,5 @@
|
||||
{% extends '_base.html' %}
|
||||
{% load static from staticfiles %}
|
||||
{% load static %}
|
||||
{% load helpers %}
|
||||
|
||||
{% block title %}{{ provider }}{% endblock %}
|
||||
|
@ -1,5 +1,5 @@
|
||||
{% extends '_base.html' %}
|
||||
{% load static from staticfiles %}
|
||||
{% load static %}
|
||||
{% load form_helpers %}
|
||||
|
||||
{% block content %}
|
||||
|
@ -1,5 +1,5 @@
|
||||
{% extends '_base.html' %}
|
||||
{% load static from staticfiles %}
|
||||
{% load static %}
|
||||
{% load helpers %}
|
||||
|
||||
{% block title %}{{ device }}{% endblock %}
|
||||
|
@ -1,5 +1,5 @@
|
||||
{% extends 'dcim/device.html' %}
|
||||
{% load staticfiles %}
|
||||
{% load static %}
|
||||
|
||||
{% block title %}{{ device }} - Config{% endblock %}
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
{% extends 'dcim/device.html' %}
|
||||
{% load staticfiles %}
|
||||
{% load static %}
|
||||
|
||||
{% block title %}{{ device }} - Status{% endblock %}
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
{% extends '_base.html' %}
|
||||
{% load static from staticfiles %}
|
||||
{% load static %}
|
||||
{% load tz %}
|
||||
{% load helpers %}
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
{% load staticfiles %}
|
||||
{% load static %}
|
||||
<div class="loading text-center">
|
||||
<img src="{% static 'img/ajax-loader.gif' %}" />
|
||||
</div>
|
||||
|
@ -1,4 +1,4 @@
|
||||
{% load static from staticfiles %}
|
||||
{% load static %}
|
||||
{% load helpers %}
|
||||
<nav class="navbar navbar-default navbar-fixed-top">
|
||||
<div class="container">
|
||||
|
@ -1,5 +1,5 @@
|
||||
{% extends 'utilities/obj_edit.html' %}
|
||||
{% load static from staticfiles %}
|
||||
{% load static %}
|
||||
{% load form_helpers %}
|
||||
{% load helpers %}
|
||||
|
||||
|
@ -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,5 +1,5 @@
|
||||
{% extends 'utilities/obj_edit.html' %}
|
||||
{% load static from staticfiles %}
|
||||
{% load static %}
|
||||
{% load form_helpers %}
|
||||
{% load helpers %}
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
{% extends '_base.html' %}
|
||||
{% load static from staticfiles %}
|
||||
{% load static %}
|
||||
{% load helpers %}
|
||||
{% load secret_helpers %}
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
{% extends '_base.html' %}
|
||||
{% load static from staticfiles %}
|
||||
{% load static %}
|
||||
{% load form_helpers %}
|
||||
|
||||
{% block content %}
|
||||
|
@ -1,5 +1,5 @@
|
||||
{% extends 'utilities/obj_import.html' %}
|
||||
{% load static from staticfiles %}
|
||||
{% load static %}
|
||||
|
||||
{% block content %}
|
||||
{{ block.super }}
|
||||
|
@ -1,5 +1,5 @@
|
||||
{% extends 'utilities/obj_edit.html' %}
|
||||
{% load static from staticfiles %}
|
||||
{% load static %}
|
||||
{% load form_helpers %}
|
||||
|
||||
{% block form %}
|
||||
|
@ -1,5 +1,5 @@
|
||||
{% extends 'users/_user.html' %}
|
||||
{% load static from staticfiles %}
|
||||
{% load static %}
|
||||
{% load form_helpers %}
|
||||
|
||||
{% block title %}User Key{% endblock %}
|
||||
|
@ -1,5 +1,5 @@
|
||||
{% extends '_base.html' %}
|
||||
{% load static from staticfiles %}
|
||||
{% load static %}
|
||||
{% load form_helpers %}
|
||||
|
||||
{% block content %}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user