-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Person.municipality field is now foreign key
- Loading branch information
1 parent
ff2f6d1
commit 03c18ba
Showing
3 changed files
with
49 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Generated by Django 4.2.16 on 2024-11-11 21:18 | ||
|
||
from django.db import migrations | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
( | ||
"members", | ||
"0058_alter_municipality_options_remove_municipality_email_and_more", | ||
), | ||
] | ||
|
||
operations = [ | ||
migrations.RemoveField( | ||
model_name="person", | ||
name="municipality", | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Generated by Django 4.2.16 on 2024-11-11 21:35 | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("members", "0059_remove_person_municipality"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="person", | ||
name="municipality", | ||
field=models.ForeignKey( | ||
blank=True, | ||
default="", | ||
null=True, | ||
on_delete=django.db.models.deletion.RESTRICT, | ||
to="members.municipality", | ||
), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters