mirror of
https://github.com/RoboSats/robosats.git
synced 2025-07-17 16:23:13 +00:00

* Add location to F2F payment option * Fix py linterns * Include migration * Revert docker-compose changes * Remove bond_size from migration * Rename 0043_order_latitude_order_longitude_alter_order_bond_size.py to 0043_order_latitude_order_longitude.py
40 lines
1.1 KiB
Python
40 lines
1.1 KiB
Python
# Generated by Django 4.2.5 on 2023-10-03 20:12
|
|
|
|
import django.core.validators
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
dependencies = [
|
|
("api", "0042_alter_order_logs_alter_robot_avatar"),
|
|
]
|
|
|
|
operations = [
|
|
migrations.AddField(
|
|
model_name="order",
|
|
name="latitude",
|
|
field=models.DecimalField(
|
|
decimal_places=6,
|
|
max_digits=8,
|
|
null=True,
|
|
validators=[
|
|
django.core.validators.MinValueValidator(-90),
|
|
django.core.validators.MaxValueValidator(90),
|
|
],
|
|
),
|
|
),
|
|
migrations.AddField(
|
|
model_name="order",
|
|
name="longitude",
|
|
field=models.DecimalField(
|
|
decimal_places=6,
|
|
max_digits=9,
|
|
null=True,
|
|
validators=[
|
|
django.core.validators.MinValueValidator(-180),
|
|
django.core.validators.MaxValueValidator(180),
|
|
],
|
|
),
|
|
),
|
|
]
|