Fix migrations

This commit is contained in:
zorn
2025-02-01 19:49:46 +10:00
parent 6b98cda299
commit aca071f450
5 changed files with 40 additions and 6 deletions

View File

@@ -116,6 +116,7 @@ class Reservation(models.Model):
status = models.CharField(max_length=50, verbose_name="Статус")
price = models.DecimalField(max_digits=10, decimal_places=2, null=True, blank=True, verbose_name="Цена")
discount = models.DecimalField(max_digits=10, decimal_places=2, null=True, blank=True, verbose_name="Скидка")
fraud_checked = models.BooleanField(default=False, verbose_name="Проверено на несоответствия", db_index=True)
def clean(self):
if self.check_out and self.check_in and self.check_out <= self.check_in: