lat long null and blank True

This commit is contained in:
rizwanisready
2024-03-22 16:38:42 +05:30
parent 011b767ddf
commit 88c03faddb
2 changed files with 29 additions and 2 deletions

View File

@@ -0,0 +1,27 @@
# Generated by Django 5.0.2 on 2024-03-22 11:02
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("manage_events", "0005_alter_eventreview_unique_together"),
]
operations = [
migrations.AlterField(
model_name="venue",
name="latitude",
field=models.DecimalField(
blank=True, decimal_places=8, max_digits=14, null=True
),
),
migrations.AlterField(
model_name="venue",
name="longitude",
field=models.DecimalField(
blank=True, decimal_places=8, max_digits=14, null=True
),
),
]

View File

@@ -22,8 +22,8 @@ class Venue(BaseModel):
address = models.TextField(null=True, blank=True)
image = models.ImageField(upload_to="venue", null=True, blank=True)
url = models.URLField(max_length=200, blank=True, null=True)
latitude = models.DecimalField(max_digits=14, decimal_places=8)
longitude = models.DecimalField(max_digits=14, decimal_places=8)
latitude = models.DecimalField(max_digits=14, decimal_places=8, blank=True, null=True)
longitude = models.DecimalField(max_digits=14, decimal_places=8, blank=True, null=True)
def __str__(self):
return self.title