l'adresse est facultative

This commit is contained in:
Jean-Marie Favreau 2024-04-27 23:18:37 +02:00
parent 9eb53fbd26
commit 8d65d35cfa
2 changed files with 19 additions and 1 deletions

View File

@ -0,0 +1,18 @@
# Generated by Django 4.2.7 on 2024-04-27 21:18
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('agenda_culturel', '0059_auto_20240427_1829'),
]
operations = [
migrations.AlterField(
model_name='place',
name='address',
field=models.CharField(blank=True, help_text='Address of this place (without city name)', null=True, verbose_name='Address'),
),
]

View File

@ -160,7 +160,7 @@ class DuplicatedEvents(models.Model):
class Place(models.Model):
name = models.CharField(verbose_name=_('Name'), help_text=_('Name of the place'))
address = models.CharField(verbose_name=_('Address'), help_text=_('Address of this place (without city name)'))
address = models.CharField(verbose_name=_('Address'), help_text=_('Address of this place (without city name)'), blank=True, null=True)
city = models.CharField(verbose_name=_('City'), help_text=_('City name'))
location = PlainLocationField(based_fields=['name', 'address', 'city'], zoom=12)