Skip to content

Commit

Permalink
Call _ with right module-name
Browse files Browse the repository at this point in the history
In this context, _ is reachable via base._ so call it by that name.
  • Loading branch information
Anton Lundin authored and amercader committed Apr 8, 2013
1 parent 920dd65 commit 6aca8f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ckan/controllers/related.py
Expand Up @@ -67,12 +67,12 @@ def read(self, id):
try:
logic.check_access('related_show', context, data_dict)
except logic.NotAuthorized:
base.abort(401, _('Not authorized to see this page'))
base.abort(401, base._('Not authorized to see this page'))

related = model.Session.query(model.Related).\
filter(model.Related.id == id).first()
if not related:
base.abort(404, _('The requested related item was not found'))
base.abort(404, base._('The requested related item was not found'))

related.view_count = model.Related.view_count + 1

Expand Down

0 comments on commit 6aca8f6

Please sign in to comment.