Skip to content

Commit

Permalink
Merge branch 'release/0.6.5'
Browse files Browse the repository at this point in the history
  • Loading branch information
pavlov99 committed Feb 11, 2015
2 parents 7aa3684 + 7464108 commit 1a13ef4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion jsonapi/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
""" JSON:API realization."""
__version = (0, 6, 4)
__version = (0, 6, 5)

__version__ = version = '.'.join(map(str, __version))
__project__ = PROJECT = __name__
1 change: 1 addition & 0 deletions jsonapi/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ def dump_document(cls, model_instance, fields_own=None, fields_to_one=None,
model_instance, "{}_id".format(field.name))

for fieldname in fields_to_many:
document["links"] = document.get("links") or {}
document["links"][fieldname] = list(
getattr(model_instance, fieldname).
values_list("id", flat=True)
Expand Down

0 comments on commit 1a13ef4

Please sign in to comment.