Django. How to get session and save it as a Foreign Key.
<p>This is a simple question. I have a model with a FK to session:</p>

<pre><code>class Booking(models.Model):
    session = models.ForeignKey('sessions.Session', blank=True, null=True)
    ...
</code></pre>

<p>When I save the model I need to do something like this:</p>

<pre><code>if form.is_valid():
    booking = form.save(commit=False)
    booking.session = HOW CAN I GET THE SESSION?
    booking.save()
</code></pre>