6883db3f8072d1d17a34e3898f4c51042ee7abb6,app/grandchallenge/workstations/views.py,FormTemplateHTMLRenderer,get_template_context,#FormTemplateHTMLRenderer#,11

Before Change


        context = super().get_template_context(
            data=data, renderer_context=renderer_context
        )
        context.update({"form": renderer_context["form_class"]})
        return context

After Change


        )
        form = renderer_context["form_class"]

        try:
            context.update({"form": form})
        except AttributeError:
            // The context is not a dictionary, a list instead. This happens
            // if no pagination class is used.
            context = {"results": context, "form": form}

        return context


class WorkstationsViewSet(ModelViewSet):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: comic/grand-challenge.org
Commit Name: 6883db3f8072d1d17a34e3898f4c51042ee7abb6
Time: 2019-03-22
Author: code@jmsmkn.com
File Name: app/grandchallenge/workstations/views.py
Class Name: FormTemplateHTMLRenderer
Method Name: get_template_context


Project Name: jazzband/django-debug-toolbar
Commit Name: 963ec339d932d3888f79dea12d3d3a89cbd1f141
Time: 2012-04-06
Author: jannis@leidel.info
File Name: debug_toolbar/panels/request_vars.py
Class Name: RequestVarsDebugPanel
Method Name: process_response


Project Name: cesium-ml/cesium
Commit Name: 9ca3f533cb6d467a1ebffda880137d3cc0ef9561
Time: 2015-05-13
Author: a.crellinquick@gmail.com
File Name: mltsp/custom_feature_tools.py
Class Name:
Method Name: extract_feats_in_docker_container