-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix SynchronizedField translation for ParentalManyToManyField #563
regenerate migrations (+4 squashed commits) Squashed commits: [d65cc37] remove unnecessary migration dependency. [be6fe90] support copying of fields in ParentalManyToManyField [fd1a699] failing test for ParentalManyToManyField [48b512c] testmanage.py makemigrations --merge
- Loading branch information
Showing
4 changed files
with
89 additions
and
2 deletions.
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
53 changes: 53 additions & 0 deletions
53
wagtail_localize/test/migrations/0004_testparentalsnippet.py
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,53 @@ | ||
# Generated by Django 3.2.5 on 2022-05-06 18:53 | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
import modelcluster.fields | ||
import uuid | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("wagtail_localize_test", "0003_wagtail_3_use_json_field"), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name="TestParentalSnippet", | ||
fields=[ | ||
( | ||
"id", | ||
models.AutoField( | ||
auto_created=True, | ||
primary_key=True, | ||
serialize=False, | ||
verbose_name="ID", | ||
), | ||
), | ||
( | ||
"translation_key", | ||
models.UUIDField(default=uuid.uuid4, editable=False), | ||
), | ||
( | ||
"field", | ||
modelcluster.fields.ParentalManyToManyField( | ||
blank=True, to="wagtail_localize_test.TestUUIDModel" | ||
), | ||
), | ||
( | ||
"locale", | ||
models.ForeignKey( | ||
editable=False, | ||
on_delete=django.db.models.deletion.PROTECT, | ||
related_name="+", | ||
to="wagtailcore.locale", | ||
), | ||
), | ||
], | ||
options={ | ||
"abstract": False, | ||
"unique_together": {("translation_key", "locale")}, | ||
}, | ||
), | ||
] |
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
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