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

9 lines
201 B
Python
Raw Normal View History

2022-04-07 10:51:35 +00:00
from assets.const import Category
2022-04-02 10:35:46 +00:00
from .common import Asset
class Host(Asset):
2022-04-07 10:51:35 +00:00
def save(self, *args, **kwargs):
self.category = Category.HOST
return super().save(*args, **kwargs)