(self, data=None, files=None,
                                         auto_id='id_%s', prefix=None,
                                         error_class=ErrorList,
                                         label_suffix=':',
                                         empty_permitted=False)
Get initialised edit form or 404.

        Same as ``get_initialised_edit_form`` but raises
        ``django.http.Http404`` on errors.
Get initialised edit form or 404.
Get initialised edit form or 404 .
def get_initialised_edit_form_or_404(self, data=None, files=None,
                                         auto_id='id_%s', prefix=None,
                                         error_class=ErrorList,
                                         label_suffix=':',
                                         empty_permitted=False):
        """Get initialised edit form or 404.

        Same as ``get_initialised_edit_form`` but raises
        ``django.http.Http404`` on errors.
        """
        plugin_form = self.get_form()
        if plugin_form:
            try:
                return self.get_initialised_edit_form(
                    data=data,
                    files=files,
                    auto_id=auto_id,
                    prefix=prefix,
                    initial=self.get_plugin_form_data(),
                    error_class=error_class,
                    label_suffix=label_suffix,
                    empty_permitted=empty_permitted,
                    instance=self.get_instance()
                )
            except Exception as err:
                if DEBUG:
                    logger.debug(err)
                raise Http404(err)
def get_initialised_edit_form_or_404 ( self , data = None , files = None , auto_id = 'id_%s' , prefix = None , error_class = ErrorList , label_suffix = ':' , empty_permitted = False ) : plugin_form = self . get_form ( ) if plugin_form : try : return self . get_initialised_edit_form ( data = data , files = files , auto_id = auto_id , prefix = prefix , initial = self . get_plugin_form_data ( ) , error_class = error_class , label_suffix = label_suffix , empty_permitted = empty_permitted , instance = self . get_instance ( ) ) except Exception as err : if DEBUG : logger . debug ( err ) raise Http404 ( err )