Bnovo pms

This commit is contained in:
2024-12-25 15:50:33 +09:00
parent e2fd7d26bd
commit 4a16de1024
5 changed files with 171 additions and 370 deletions

View File

@@ -14,7 +14,11 @@ class PMSConfiguration(models.Model):
password = models.CharField(max_length=255, blank=True, null=True, verbose_name="Пароль")
plugin_name = models.CharField(max_length=255, blank=True, null=True, verbose_name="Плагин")
created_at = models.DateTimeField(auto_now_add=True, verbose_name="Дата создания")
hotels = models.ManyToManyField(
'hotels.Hotel',
related_name='pms_configurations',
verbose_name="Отели"
)
def __str__(self):
return self.name