title: get current user in Django Form
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/1202839/get-request-data-in-django-form">get request data in Django form</a>  </p>
  </blockquote>
  
  
  
  <p>There's part of my Guest Model:</p>
  
  <pre><code>class Guest(models.Model):
      event = models.ForeignKey(Event, related_name='guests')
      user = models.ForeignKey(User, unique=True, related_name='guests')
      ...
  </code></pre>
  
  <p>Form to get the response from the Guest:</p>
  
  <pre><code>class RSVPForm(forms.Form):
      attending_d= forms.ChoiceField(choices=VISIBLE_ATTENDING_CHOICES, initial='yes', widget=forms.RadioSelect)
      attending_b = forms.ChoiceField(choices=VISIBLE_ATTENDING_CHOICES, initial='yes', widget=forms.RadioSelect)
      number_of_guests = forms.IntegerField(initial=0)
      comment = forms.CharField(max_length=255, required=False, widget=forms.Textarea)
  
      ....    
  
      def save(self):
          guest = self.guest_class.objects.get(user=1)
          guest.attending_status_d = self.cleaned_data['attending_d']
          guest.attending_status_b = self.cleaned_data['attending_b']
          guest.number_of_guests = self.cleaned_data['number_of_guests']
          guest.comment = self.cleaned_data['comment']
          guest.save()
          return guest
  </code></pre>
  
  <p>The problem is in save method. How can I associate guest with the currently logged in user?</p>
  
  <pre><code>guest = self.Guest.objects.get(user=1)
  </code></pre>
  
  <p>Instead of <code>user=1</code> I need to have id of the currently logged in user.</p>
  
  <p>Thank you!</p>