3b7cf764e3c0e95ea41bfb84301d343d846e481b,app/grandchallenge/workstations/views.py,SessionCreate,form_valid,#SessionCreate#Any#,300

Before Change


    def form_valid(self, form):
        form.instance.creator = self.request.user
        form.instance.workstation_image = self.workstation.latest_ready_image
        return super().form_valid(form)


class SessionDetail(
    LoginRequiredMixin, ObjectPermissionRequiredMixin, DetailView

After Change


            region=form.cleaned_data["region"],
        )

        url = session.get_absolute_url()

        qs = self.request.META.get("QUERY_STRING", "")
        if qs:
            url = f"{url}?{qs}"

        return HttpResponseRedirect(url)


class SessionDetail(
    LoginRequiredMixin,
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: comic/grand-challenge.org
Commit Name: 3b7cf764e3c0e95ea41bfb84301d343d846e481b
Time: 2020-06-04
Author: 12661555+jmsmkn@users.noreply.github.com
File Name: app/grandchallenge/workstations/views.py
Class Name: SessionCreate
Method Name: form_valid


Project Name: comic/grand-challenge.org
Commit Name: 12da68aef1f89c43d6defe005f5779183d21e529
Time: 2018-02-27
Author: jamesmeakin@gmail.com
File Name: app/evaluation/templatetags/evaluation_extras.py
Class Name:
Method Name: get_team_html


Project Name: comic/grand-challenge.org
Commit Name: b7fadb660abf42635aa6b36b5d5dbdc3f0af4792
Time: 2018-12-13
Author: jamesmeakin@gmail.com
File Name: app/grandchallenge/datasets/views.py
Class Name: AddImagesToImageSet
Method Name: get_success_url


Project Name: comic/grand-challenge.org
Commit Name: b7fadb660abf42635aa6b36b5d5dbdc3f0af4792
Time: 2018-12-13
Author: jamesmeakin@gmail.com
File Name: app/grandchallenge/datasets/views.py
Class Name: AddImagesToAnnotationSet
Method Name: get_success_url