Skip to content

Conversation

vivektiwary
Copy link

while deserializing any polymorphic relation, the type of the record was
coming wrong. (e.g, for a relation of type 'BlogPost', the type was
coming out as 'Blog-post'). This was happening because, we were not
converting the hyphenated 'type' to underscore. This PR will do that
before calling classify on the type.

Purpose

Changes

Caveats

Related GitHub issues

Additional helpful information

while deserializing any polymorphic relation, the type of the record was
coming wrong. (e.g, for a relation of type 'BlogPost', the type was
coming out as 'Blog-post'). This was happening because, we were not
converting the hyphenated 'type' to underscore. This PR will do that
before calling classify on the type.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant