Skip to content

Commit

Permalink
[#3196] Simplify request params property
Browse files Browse the repository at this point in the history
  • Loading branch information
amercader committed Aug 10, 2016
1 parent 5337b1e commit 4d24254
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ckan/common.py
Expand Up @@ -134,9 +134,9 @@ def params(self):
use request.args
'''
try:
return super(CKANRequest, self).__getattr__(u'params')
return super(CKANRequest, self).params
except AttributeError:
return super(CKANRequest, self).__getattr__(u'args')
return self.args


local = Local()
Expand Down

0 comments on commit 4d24254

Please sign in to comment.