Skip to content

Commit

Permalink
Merge d941adf into 9895b74
Browse files Browse the repository at this point in the history
  • Loading branch information
andreiavram committed Jan 31, 2014
2 parents 9895b74 + d941adf commit c9c9054
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion redmine/resources.py
Expand Up @@ -412,7 +412,6 @@ def __repr__(self):
self.id
)


class Version(_Resource):
redmine_version = '1.3'
container_filter = 'versions'
Expand All @@ -423,6 +422,13 @@ class Version(_Resource):
query_create = '/projects/{project_id}/versions.json'
query_delete = '/versions/{0}.json'

def __getattr__(self, item):
""" Manual override for string only 'status' field in Redmine Version object
"""

if item == "status":
return self.attributes[item]
return super(Version, self).__getattr__(item)

class User(_Resource):
redmine_version = '1.1'
Expand Down

0 comments on commit c9c9054

Please sign in to comment.