added prices

This commit is contained in:
Alexander Karpov 2023-05-26 20:49:24 +03:00
parent 44c20e4b7e
commit dd7ce0f5fa
2 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,18 @@
# Generated by Django 4.2.1 on 2023-05-26 17:13
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("events", "0023_restaurant_extra_kwargs"),
]
operations = [
migrations.AddField(
model_name="basepoint",
name="price",
field=models.IntegerField(null=True),
),
]

View File

@ -111,6 +111,7 @@ class BasePoint(OIDModel, PolymorphicModel):
lon = models.FloatField(default=0, db_index=True) lon = models.FloatField(default=0, db_index=True)
can_buy = models.BooleanField(default=True) can_buy = models.BooleanField(default=True)
priority = models.BooleanField(default=False) priority = models.BooleanField(default=False)
price = models.IntegerField(null=True)
@property @property
@extend_schema_field( @extend_schema_field(