mirror of https://github.com/jumpserver/jumpserver
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
386 B
15 lines
386 B
from django.db import models
|
|
from django.utils.translation import gettext_lazy as _
|
|
|
|
from .common import Asset
|
|
|
|
|
|
class Database(Asset):
|
|
db_name = models.CharField(max_length=1024, verbose_name=_("Database"), blank=True)
|
|
|
|
def __str__(self):
|
|
return '{}({}://{}/{})'.format(self.name, self.type, self.ip, self.db_name)
|
|
|
|
class Meta:
|
|
verbose_name = _("Database")
|