mirror of
https://github.com/task-17-lct/backend.git
synced 2024-11-30 14:23:44 +03:00
added prices
This commit is contained in:
parent
c548985ed0
commit
71432809ad
18
passfinder/events/migrations/0024_basepoint_price.py
Normal file
18
passfinder/events/migrations/0024_basepoint_price.py
Normal 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),
|
||||||
|
),
|
||||||
|
]
|
|
@ -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(
|
||||||
|
|
Loading…
Reference in New Issue
Block a user