mirror of
https://github.com/netbox-community/netbox.git
synced 2025-12-19 20:02:22 -06:00
DummyQuerySet should be iterable to allow for serialization
This commit is contained in:
@@ -10,6 +10,9 @@ class DummyQuerySet:
|
||||
def __init__(self, queryset):
|
||||
self._cache = [obj for obj in queryset.all()]
|
||||
|
||||
def __iter__(self):
|
||||
return iter(self._cache)
|
||||
|
||||
def all(self):
|
||||
return self._cache
|
||||
|
||||
|
||||
Reference in New Issue
Block a user