From 57268a61c0acd5ee64512cd38a02bef7ad746c38 Mon Sep 17 00:00:00 2001 From: KoalaSat Date: Tue, 10 Oct 2023 12:47:22 +0000 Subject: [PATCH] Add location to F2F payment option (backend) (#867) * 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 --- .../0043_order_latitude_order_longitude.py | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 api/migrations/0043_order_latitude_order_longitude.py diff --git a/api/migrations/0043_order_latitude_order_longitude.py b/api/migrations/0043_order_latitude_order_longitude.py new file mode 100644 index 000000000..fe59aad31 --- /dev/null +++ b/api/migrations/0043_order_latitude_order_longitude.py @@ -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), + ], + ), + ), + ]