23👍
✅
This seems like a bad idea. Apart from anything else, if you store an object in the session, it won’t change if/when the database version does.
4👍
there is exception:
if your object doesnt exist in db yet
for example if you build it (object) through many steps/views.
- Django-tables2 add button per row
- Django Building a queryset with Q objects
- Web visitor statistics for Django?
- In django + nginx + wsgi, what is a "mysite.sock"
Source:stackexchange.com