removed excursions

This commit is contained in:
Alexander Karpov 2023-05-21 14:12:45 +03:00
parent 720ae9206a
commit fcfb991388
3 changed files with 27 additions and 45871 deletions

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,27 @@
# Generated by Django 4.2.1 on 2023-05-21 11:12
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
("events", "0013_remove_restaurant_phone_restaurant_phones_and_more"),
]
operations = [
migrations.RemoveField(
model_name="excursionroute",
name="excursion",
),
migrations.RemoveField(
model_name="excursionroute",
name="point",
),
migrations.DeleteModel(
name="Excursion",
),
migrations.DeleteModel(
name="ExcursionRoute",
),
]

View File

@ -139,21 +139,6 @@ class HotelPhone(models.Model):
number = models.CharField(max_length=18)
class Excursion(BasePoint):
duration_hours = models.IntegerField()
price = models.IntegerField()
minGroupCount = models.CharField(max_length=250)
program = models.TextField()
class ExcursionRoute(models.Model):
excursion = models.ForeignKey(
"Excursion", related_name="routes", on_delete=models.CASCADE
)
point = models.ForeignKey("Event", related_name="routes", on_delete=models.CASCADE)
active = models.BooleanField(default=True)
class Restaurant(BasePoint):
address = models.CharField(max_length=250)
bill = models.IntegerField(null=True)