Skip to content

Commit

Permalink
Add location to F2F payment option (backend) (RoboSats#867)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
KoalaSat committed Oct 12, 2023
1 parent 7bdcc5b commit 57268a6
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions api/migrations/0043_order_latitude_order_longitude.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# 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),
],
),
),
]

0 comments on commit 57268a6

Please sign in to comment.