title: django: Override get_Form inlines
body: <p>I want to override the <code>get_form</code> in a tabular admin in order to filter by current user.
  The thing is that I'm getting a error:</p>
  
  <pre><code> object has no attribute 'current_user'
  </code></pre>
  
  <ul>
  <li><p>Admin.py</p>
  
  <pre><code>class InvoiceDetail(admin.TabularAdmin):
      form = InvoiceDetailForm
      model = fa_invoice_lines
  
      def get_form(self, request, obj=None, **kwargs):
          form = super(InvoiceDetail, self).get_form(request, obj, **kwargs)
          form.current_user = request.user
          return form
  
  class Invoice(admin.ModelAdmin)
      form = InvoiceForm
      inlines =   [InvoiceDetail,]
  </code></pre></li>
  <li><p>Form.py</p>
  
  <pre><code>class InvoiceDetailForm(forms.ModelForm):
      def __init__(self, *args, **kwargs):
          super(InvoiceDetailForm, self).__init__(*args, **kwargs)
          self.fields['item'].queryset = fa_items.objects.filter(tenant=self.current_user)
  
      class Meta:
          model = fa_invoice_lines
  </code></pre></li>
  </ul>
  
  <p>I have used the same strategy in not inlines and it works
  It seems is not calling the <code>get_form</code></p>