title: How to filter model choice field options based on user in django?
body: <p>Here is my form:</p>
  
  <pre><code>class RecipeForm(forms.Form):
      def __init__(self,  *args, **kwargs):
          self.user = kwargs.pop('user', None)
          super(RecipeForm, self).__init__(*args, **kwargs)
      Recipebase_id = forms.ModelChoiceField(queryset=Recipebase.objects.filter(user = self.user))
      title = forms.CharField(max_length=500)
      instructions = forms.CharField(max_length=500)
  </code></pre>
  
  <p>I want to filter model choice field based on user as you can see from the filter. But it gives the following error:</p>
  
  <pre><code>name 'self' is not defined
  </code></pre>
  
  <p>Any suggestions would be highly appreciated.</p>