mirror of
https://github.com/netbox-community/netbox.git
synced 2025-12-19 20:02:22 -06:00
📌 Update cacheops, filter, and Django consumption (#40)
This commit is contained in:
@@ -7,7 +7,7 @@ import django_filters
|
|||||||
import yaml
|
import yaml
|
||||||
from django import forms
|
from django import forms
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
from django.contrib.postgres.forms.jsonb import JSONField as _JSONField, InvalidJSONInput
|
from django.contrib.postgres.forms.jsonb import JSONField as _JSONField
|
||||||
from django.core.exceptions import MultipleObjectsReturned
|
from django.core.exceptions import MultipleObjectsReturned
|
||||||
from django.db.models import Count
|
from django.db.models import Count
|
||||||
from django.forms import BoundField
|
from django.forms import BoundField
|
||||||
@@ -28,6 +28,10 @@ BOOLEAN_WITH_BLANK_CHOICES = (
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
class InvalidJSONInput(str):
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
def parse_numeric_range(string, base=10):
|
def parse_numeric_range(string, base=10):
|
||||||
"""
|
"""
|
||||||
Expand a numeric range (continuous or not) into a decimal or
|
Expand a numeric range (continuous or not) into a decimal or
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
Django>=3.0,<3.1
|
Django>=3.0,<3.1
|
||||||
django-cacheops==4.2
|
django-cacheops==5.0.1
|
||||||
django-cors-headers==3.2.1
|
django-cors-headers==3.2.1
|
||||||
django-debug-toolbar==2.2
|
django-debug-toolbar==2.2
|
||||||
django-filter==2.2.0
|
django-filter==2.3.0
|
||||||
django-mptt==0.11.0
|
django-mptt==0.11.0
|
||||||
django-pglocks==1.0.4
|
django-pglocks==1.0.4
|
||||||
django-prometheus==2.0.0
|
django-prometheus==2.0.0
|
||||||
|
|||||||
Reference in New Issue
Block a user