We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6c5c508 commit 2bcc80dCopy full SHA for 2bcc80d
src/serializer.js
@@ -199,7 +199,7 @@ DS.DjangoRESTSerializer = DS.RESTSerializer.extend({
199
200
var key = relationship.key,
201
json_key = this.keyForRelationship(key, "hasMany"),
202
- relationshipType = record.constructor.determineRelationshipType(relationship);
+ relationshipType = DS.RelationshipChange ? DS.RelationshipChange.determineRelationshipType(record.constructor, relationship) : record.constructor.determineRelationshipType(relationship);
203
204
if (relationshipType === 'manyToNone' || relationshipType === 'manyToMany') {
205
json[json_key] = record.get(key).mapBy('id');
0 commit comments