update __getstate__ to be on par with newer django

newer django versions implement the __getstate__ method on
SimpleTemplateResponse using the rendering_attrs property to remove
attributes that shouldn’t be cached.

dynamic property was added to support django < 1.4 without breaking the
interface