title: Django - Is storing objects in session a good practice?
body: <pre><code>class Book(models.Model):
    author = models.ForeignKey(User)
    name = models.CharField(max_length=100)
  
  def view(request):
    book = Book.objects.get(pk=1)
    request.session['selected_book'] = book
  </code></pre>
  
  <p>Is it a good practice to store Objects in Session instead of their id ?<br>
  Will it be "picklable"   enough to be used in templates for example ?</p>
  
  
  
  <pre><code>&lt;div&gt;{{ request.session.book.author.name }}&lt;/div&gt;
  </code></pre>