Skip to content

Commit

Permalink
Add index to cloud hosts hostname
Browse files Browse the repository at this point in the history
  • Loading branch information
miedzinski committed Mar 15, 2024
1 parent 541c25d commit 7cd2f03
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ralph/virtual/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,8 @@ def save(self, *args, **kwargs):
)
hostname = models.CharField(
verbose_name=_('hostname'),
max_length=255
max_length=255,
db_index=True,
)
hypervisor = models.ForeignKey(DataCenterAsset, blank=True, null=True)
image_name = models.CharField(max_length=255, null=True, blank=True)
Expand Down

0 comments on commit 7cd2f03

Please sign in to comment.