Skip to content

Commit

Permalink
πŸ‘Œ Improve: An event is associated with only one place.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmiguelv committed Feb 5, 2020
1 parent 04ed9fc commit 611944c
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions radical_translations/events/migrations/0006_alter_event_places.py
@@ -0,0 +1,24 @@
# Generated by Django 2.2.9 on 2020-02-05 20:56

from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

dependencies = [
('geonames_place', '0004_change_meta_options_on_country'),
('events', '0005_event_meta_ordering'),
]

operations = [
migrations.RemoveField(
model_name='event',
name='places',
),
migrations.AddField(
model_name='event',
name='place',
field=models.ForeignKey(blank=True, help_text='The location the Event took place at.', null=True, on_delete=django.db.models.deletion.CASCADE, to='geonames_place.Place'),
),
]

0 comments on commit 611944c

Please sign in to comment.