Skip to content

Commit

Permalink
issue #220
Browse files Browse the repository at this point in the history
  • Loading branch information
maxtepkeev committed Feb 22, 2019
1 parent 08c0b64 commit d8aaa32
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions CHANGELOG.rst
@@ -1,6 +1,15 @@
Changelog
---------

2.2.1 (2019-02-XX)
++++++++++++++++++

**Bugfixes**:

- ProjectMembership resource ``group`` attribute was returned as a dict instead of being converted to
Resource object (`Issue #220 <https://github.com/maxtepkeev/python-redmine/issues/220>`__) (thanks
to `Samuel Harmer <https://github.com/samuelharmer>`__)

2.2.0 (2019-01-13)
++++++++++++++++++

Expand Down
2 changes: 1 addition & 1 deletion redminelib/resources/standard.py
Expand Up @@ -333,7 +333,7 @@ class ProjectMembership(BaseResource):
_repr = [['id']]
_create_readonly = BaseResource._create_readonly + ['user', 'roles']
_update_readonly = _create_readonly[:]
_resource_map = {'project': 'Project', 'user': 'User'}
_resource_map = {'project': 'Project', 'user': 'User', 'group': 'Group'}
_resource_set_map = {'roles': 'Role'}
_single_attr_id_map = {'project_id': 'project', 'user_id': 'users'}
_multiple_attr_id_map = {'role_ids': 'roles'}
Expand Down

0 comments on commit d8aaa32

Please sign in to comment.