jessedhillon/batteries — pull request #6 by benmathes (2014-07-31 23:25:20+00:00)
Title: Serialize transients

Example situation:

```python
from sqlalchemy.orm.session import make_transient
from foo import SomeModel

instance = session.query(SomeModel).first()
make_transient(instance)
instance.serialize() # DetachedInstanceError: Instance is not bound to a Session; attribute refresh operation cannot proceed
```