2
0
Эх сурвалжийг харах

Changelog and misc cleanup

Jeremy Stretch 7 жил өмнө
parent
commit
2ee5b2344e

+ 1 - 0
CHANGELOG.md

@@ -2,6 +2,7 @@ v2.4.5 (FUTURE)
 
 
 ## Enhancements
 ## Enhancements
 
 
+* [#2392](https://github.com/digitalocean/netbox/issues/2392) - Implemented local context data for devices and virtual machines
 * [#2402](https://github.com/digitalocean/netbox/issues/2402) - Order and format JSON data in form fields
 * [#2402](https://github.com/digitalocean/netbox/issues/2402) - Order and format JSON data in form fields
 * [#2432](https://github.com/digitalocean/netbox/issues/2432) - Link remote interface connections to the Interface view
 * [#2432](https://github.com/digitalocean/netbox/issues/2432) - Link remote interface connections to the Interface view
 
 

+ 1 - 1
netbox/dcim/models.py

@@ -10,7 +10,7 @@ from django.contrib.postgres.fields import ArrayField, JSONField
 from django.core.exceptions import ObjectDoesNotExist, ValidationError
 from django.core.exceptions import ObjectDoesNotExist, ValidationError
 from django.core.validators import MaxValueValidator, MinValueValidator
 from django.core.validators import MaxValueValidator, MinValueValidator
 from django.db import models
 from django.db import models
-from django.db.models import Count, Q, ObjectDoesNotExist
+from django.db.models import Count, Q
 from django.urls import reverse
 from django.urls import reverse
 from django.utils.encoding import python_2_unicode_compatible
 from django.utils.encoding import python_2_unicode_compatible
 from mptt.models import MPTTModel, TreeForeignKey
 from mptt.models import MPTTModel, TreeForeignKey

+ 0 - 1
netbox/virtualization/models.py

@@ -2,7 +2,6 @@ from __future__ import unicode_literals
 
 
 from django.conf import settings
 from django.conf import settings
 from django.contrib.contenttypes.fields import GenericRelation
 from django.contrib.contenttypes.fields import GenericRelation
-from django.contrib.postgres.fields import JSONField
 from django.core.exceptions import ValidationError
 from django.core.exceptions import ValidationError
 from django.db import models
 from django.db import models
 from django.urls import reverse
 from django.urls import reverse