title: Inline formset in Django - removing certain fields
body: <p>I need to create an inline formset which </p>
  
  <p>a) excludes some fields from <code>MyModel</code> being displayed altogether </p>
  
  <p>b) displays some some fields <code>MyModel</code> but prevents them from being editable.</p>
  
  <p>I tried using the code below, using <code>values()</code> in order to filter the query set to just those values I wanted returned.  However, this failed.</p>
  
  <p>Anybody with any idea?</p>
  
  <pre><code>class PointTransactionFormset(BaseInlineFormSet):
      def get_queryset(self):
          qs = super(PointTransactionFormset, self).get_queryset()
          qs = qs.filter(description="promotion feedback")
          qs = qs.values('description','points_type') # this does not work
          return qs
  
  class PointTransactionInline(admin.TabularInline):
      model = PointTransaction
      #formset = points_formset()
      #formset = inlineformset_factory(UserProfile,PointTransaction)
      formset = PointTransactionFormset
  </code></pre>