l'adresse est facultative
This commit is contained in:
parent
9eb53fbd26
commit
8d65d35cfa
18
src/agenda_culturel/migrations/0060_alter_place_address.py
Normal file
18
src/agenda_culturel/migrations/0060_alter_place_address.py
Normal 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'),
|
||||||
|
),
|
||||||
|
]
|
@ -160,7 +160,7 @@ class DuplicatedEvents(models.Model):
|
|||||||
|
|
||||||
class Place(models.Model):
|
class Place(models.Model):
|
||||||
name = models.CharField(verbose_name=_('Name'), help_text=_('Name of the place'))
|
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'))
|
city = models.CharField(verbose_name=_('City'), help_text=_('City name'))
|
||||||
location = PlainLocationField(based_fields=['name', 'address', 'city'], zoom=12)
|
location = PlainLocationField(based_fields=['name', 'address', 'city'], zoom=12)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user