ckan/ckan — pull request #1617 by nigelbabu (2014-04-11 03:54:14+00:00)
Title: DetachedInstanceError

Hello, we have this error 500 when accessing to the related tab of a dataset using a user logged in, server log:
```
[error] [client x.x.x.x] Error - : Parent instance is not bound to a Session; lazy load operation of attribute 'related' cannot proceed, referer: ...
```
When the user is not logged the related view works perfect.

Any help? Thanks