-
Notifications
You must be signed in to change notification settings - Fork 149
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix allow blank on order geolocation
- Loading branch information
1 parent
54a5987
commit d127d93
Showing
2 changed files
with
43 additions
and
2 deletions.
There are no files selected for viewing
41 changes: 41 additions & 0 deletions
41
api/migrations/0045_alter_order_latitude_alter_order_longitude.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# Generated by Django 4.2.6 on 2023-10-24 23:09 | ||
|
||
import django.core.validators | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("api", "0044_alter_markettick_fee_and_more"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="order", | ||
name="latitude", | ||
field=models.DecimalField( | ||
blank=True, | ||
decimal_places=6, | ||
max_digits=8, | ||
null=True, | ||
validators=[ | ||
django.core.validators.MinValueValidator(-90), | ||
django.core.validators.MaxValueValidator(90), | ||
], | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="order", | ||
name="longitude", | ||
field=models.DecimalField( | ||
blank=True, | ||
decimal_places=6, | ||
max_digits=9, | ||
null=True, | ||
validators=[ | ||
django.core.validators.MinValueValidator(-180), | ||
django.core.validators.MaxValueValidator(180), | ||
], | ||
), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters