Closed marksweb closed 1 year ago
Merging #274 (d0f3f40) into master (3e6e587) will increase coverage by
0.02%
. The diff coverage is100.00%
.
@@ Coverage Diff @@
## master #274 +/- ##
==========================================
+ Coverage 90.53% 90.55% +0.02%
==========================================
Files 68 69 +1
Lines 2324 2329 +5
Branches 314 314
==========================================
+ Hits 2104 2109 +5
Misses 165 165
Partials 55 55
Impacted Files | Coverage Δ | |
---|---|---|
...ning/migrations/0016_alter_version_content_type.py | 100.00% <100.00%> (ø) |
|
djangocms_versioning/models.py | 95.05% <100.00%> (ø) |
Description
This adds the
related_name
attribute to thecontent_type
field of theVersion
model.Currently the reverse lookup from a queryset will be using django's default name of
version_set
. That default is the reason for this change. By having this app installed, an application cannot have another model calledVersion
with aForeignKey
toContentType
.This is a breaking change if an application is making queries which access that reverse relationship. Currently they'd be doing something like;
This would need to become the following with this change;
Related resources
273
Checklist
master