mirror of
https://github.com/task-17-lct/backend.git
synced 2024-11-24 04:13:43 +03:00
removed excursions
This commit is contained in:
parent
720ae9206a
commit
fcfb991388
45856
data/excursions.json
45856
data/excursions.json
File diff suppressed because it is too large
Load Diff
|
@ -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",
|
||||||
|
),
|
||||||
|
]
|
|
@ -139,21 +139,6 @@ class HotelPhone(models.Model):
|
||||||
number = models.CharField(max_length=18)
|
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):
|
class Restaurant(BasePoint):
|
||||||
address = models.CharField(max_length=250)
|
address = models.CharField(max_length=250)
|
||||||
bill = models.IntegerField(null=True)
|
bill = models.IntegerField(null=True)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user