update venue addres fields

This commit is contained in:
Corban-Lee Jones 2024-11-05 13:51:58 +00:00
parent 5f7ba001ac
commit 03fd41e359
2 changed files with 31 additions and 3 deletions

View File

@ -0,0 +1,28 @@
# Generated by Django 5.0.6 on 2024-11-05 13:50
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('apps_home', '0001_initial'),
]
operations = [
migrations.RenameField(
model_name='venueaddress',
old_name='county',
new_name='provence',
),
migrations.AlterField(
model_name='venueaddress',
name='latitude',
field=models.DecimalField(blank=True, decimal_places=6, max_digits=9, null=True),
),
migrations.AlterField(
model_name='venueaddress',
name='longitude',
field=models.DecimalField(blank=True, decimal_places=6, max_digits=9, null=True),
),
]

View File

@ -93,12 +93,12 @@ class VenueAddress(models.Model):
street_number = models.IntegerField()
street_address = models.CharField(max_length=256)
town = models.CharField(max_length=256)
county = models.CharField(max_length=256)
provence = models.CharField(max_length=256)
post_code = models.CharField(max_length=32)
satnav_post_code = models.CharField(max_length=32)
country = models.CharField(max_length=128)
latitude = models.DecimalField(max_digits=22, decimal_places=16)
longitude = models.DecimalField(max_digits=22, decimal_places=16)
latitude = models.DecimalField(max_digits=9, decimal_places=6, null=True, blank=True)
longitude = models.DecimalField(max_digits=9, decimal_places=6, null=True, blank=True)
class Meta:
verbose_name = "venue address"