@property
def form(self):
    if (not hasattr(self, '_form')):
        fields = OrderedDict([(name, filter_.field) for (name, filter_) in six.iteritems(self.filters)])
        fields[self.order_by_field] = self.ordering_field
        Form = type(str(('%sForm' % self.__class__.__name__)), (self._meta.form,), fields)
        if self._meta.together:
            Form.full_clean = get_full_clean_override(self._meta.together)
        if self.is_bound:
            self._form = Form(self.data, prefix=self.form_prefix)
        else:
            self._form = Form(prefix=self.form_prefix)
    return self._form
@property
def form(self):
    if (not hasattr(self, '_form')):
        fields = OrderedDict([(name, filter_.field) for (name, filter_) in six.iteritems(self.filters)])
        fields[self.order_by_field] = self.ordering_field
        Form = type(str(('%sForm' % self.__class__.__name__)), (self._meta.form,), fields)
        if self._meta.together:
            Form.full_clean = get_full_clean_override(self._meta.together)
        if self.is_bound:
            self._form = Form(self.data, prefix=self.form_prefix)
        else:
            self._form = Form(prefix=self.form_prefix)
    return self._form