mirror of
https://github.com/task-17-lct/backend.git
synced 2024-11-10 23:56:34 +03:00
added prices
This commit is contained in:
parent
44c20e4b7e
commit
dd7ce0f5fa
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)
|
||||
can_buy = models.BooleanField(default=True)
|
||||
priority = models.BooleanField(default=False)
|
||||
price = models.IntegerField(null=True)
|
||||
|
||||
@property
|
||||
@extend_schema_field(
|
||||
|
|
Loading…
Reference in New Issue
Block a user