title: Django: Using crispy styled formsets in a class based view
body: <p>Hi Stackoverflow people, </p>
  
  <p>I would like to style a formset with the crispy app, but it causes some grieve. </p>
  
  <p>A very simple model should be presented four times.</p>
  
  <pre><code>class ItemPicture(models.Model):
      item = models.ForeignKey('Item')
      picture = ThumbnailerImageField(_('Image'),
              upload_to='pictures/', null=True, blank=True,)
  </code></pre>
  
  <p>The form class is also straightforward:</p>
  
  <pre><code>class ItemPictureForm(forms.ModelForm):
      class Meta:
          model = ItemPicture
          fields = ('picture',)
  
      def __init__(self, *args, **kwargs):
          self.helper = FormHelper()
          self.helper.form_tag = False
          self.helper.layout = Layout(
                  Fieldset(_('Add pictures'),'picture', ),
                  ButtonHolder(
                      Submit('save', _('Add'), css_class='btn btn-primary '),
                      Reset('reset', _('Cancel'), css_class='btn')))
          super(ItemPictureForm, self).__init__(*args, **kwargs)
  </code></pre>
  
  <p>In my views.py, I generate the formset:</p>
  
  <pre><code>class ItemUploadPictures(FormView):
      ItemPictureFormSet = formset_factory(ItemPictureForm, extra=4)
      form_class = ItemPictureFormSet
      template_name = 'item_upload_pictures.html' 
      success_url = reverse_lazy('dashboard') 
  </code></pre>
  
  <p>My trouble is that crispy expects <code>{% crispy formset formset.form.helper %}</code> in the template, but it seems that the passed-through variable is <code>form</code>. 
  <code>{% crispy form %}</code> works, but no helper attributes will be displayed. <strong>How can I pass the entire formset information to the template?</strong></p>
  
  <p>Thank you for your suggestions.</p>