-
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.
fix: Added related_name to version content type field (#274)
* Add a `related_name` to the version model content_type foreign key. [fix #273] * Updated changelog --------- Co-authored-by: Fabian Braun <fsbraun@gmx.de>
- Loading branch information
Showing
3 changed files
with
26 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
20 changes: 20 additions & 0 deletions
20
djangocms_versioning/migrations/0016_alter_version_content_type.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,20 @@ | ||
# Generated by Django 3.2.13 on 2022-05-20 21:11 | ||
|
||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('contenttypes', '0002_remove_content_type_name'), | ||
('djangocms_versioning', '0015_version_modified'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='version', | ||
name='content_type', | ||
field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, related_name='cms_versions', to='contenttypes.contenttype'), | ||
), | ||
] |
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