Closed skeletorXVI closed 2 years ago
Merging #281 (f2cf2ff) into master (2ab11b3) will increase coverage by
0.06%
. The diff coverage is100.00%
.
@@ Coverage Diff @@
## master #281 +/- ##
==========================================
+ Coverage 89.31% 89.38% +0.06%
==========================================
Files 8 8
Lines 936 942 +6
==========================================
+ Hits 836 842 +6
Misses 100 100
Impacted Files | Coverage Δ | |
---|---|---|
rest_framework_mongoengine/serializers.py | 93.75% <100.00%> (+0.10%) |
:arrow_up: |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update 2ab11b3...f2cf2ff. Read the comment docs.
Improve compatibility with drf-yasg by adding
ref_name
attribute to the Meta classes generated inDocumentSerializer.build_nested_reference_field()
andDocumentSerializer.build_nested_embedded_field()
. This fixes a collection of bugs related to the serializer reference names being declared multiple times.Replace
self.Meta.model
with withself.get_model()
inDocumentSerializer
to simplify implementing polymorphic model support. Notes:ComboReferenceField
still usesself.Meta.model