mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
11 lines
268 B
Python
11 lines
268 B
Python
from django.contrib.postgres.fields.array import ArrayContains
|
|
|
|
from dcim.utils import object_to_path_node
|
|
|
|
|
|
class PathContains(ArrayContains):
|
|
|
|
def get_prep_lookup(self):
|
|
self.rhs = [object_to_path_node(self.rhs)]
|
|
return super().get_prep_lookup()
|