Closed suvit closed 7 years ago
Please, remove old way of returning Response. Now lfs in every view returns HttpResponse (or render_to_response).
I offer to use TemplateResponse to add/modifie some vars in context in overloaded view (simular to inheritance of views)
Link to TemplateResponse https://docs.djangoproject.com/en/dev/ref/template-response/
TemplateResponse is introduced in django 1.3, so remove support of django<1.3
more better solution is to use class-based-views, and inherit all the lfs views from LFSView
Please, remove old way of returning Response. Now lfs in every view returns HttpResponse (or render_to_response).
I offer to use TemplateResponse to add/modifie some vars in context in overloaded view (simular to inheritance of views)
Link to TemplateResponse https://docs.djangoproject.com/en/dev/ref/template-response/
TemplateResponse is introduced in django 1.3, so remove support of django<1.3