title: Django Form ChoiceField with Queryset
body: <p>I need to get the other users of the firm within the ModelForm to set the main user, I do not know how to get variables inside the form for this?</p>
  
  <p>In the view the variable needed would be:</p>
  
  <pre><code>request.user.profile.firm
  </code></pre>
  
  <p>This is the form that needs to be created.</p>
  
  <pre><code>class FirmForm(forms.ModelForm):
  
      primary = forms.ModelChoiceField(
          queryset=User.objects.filter(name=request.user.profile.firm))
  
      class Meta:
          model = Firm
  </code></pre>
  
  <p>The Profile Model:</p>
  
  <pre><code>class Profile (models.Model):
      user = models.OneToOneField(
          settings.AUTH_USER_MODEL, on_delete=models.CASCADE)
      firm = models.ForeignKey(
          Firm, on_delete=models.CASCADE, null=True, blank=True)
  
  
      def __str__(self):
          return str(self.user.username)
  </code></pre>
  
  <p>The Firm model</p>
  
  <pre><code>class Firm (models.Model):
      name = models.CharField(max_length=100)
  
      def __str__(self):
          return str(self.name)
  </code></pre>