jumpserver/apps/assets/models/asset/host.py

13 lines
251 B
Python
Raw Normal View History

from assets.const import GATEWAY_NAME
2022-04-02 10:35:46 +00:00
from .common import Asset
class Host(Asset):
@classmethod
def get_gateway_queryset(cls):
queryset = cls.objects.filter(
platform__name=GATEWAY_NAME
)
return queryset