b7fadb660abf42635aa6b36b5d5dbdc3f0af4792,app/grandchallenge/datasets/views.py,AddImagesToImageSet,get_success_url,#AddImagesToImageSet#,39
Before Change
return reverse(
"datasets:imageset-detail",
kwargs={
"challenge_short_name": self.kwargs["challenge_short_name"],
"pk": self.kwargs["pk"],
},
)
After Change
return super().form_valid(form)
def get_success_url(self):
return self.object.imageset.get_absolute_url()
class ImageSetUpdate(UserIsStaffMixin, UpdateView):
model = ImageSet
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 2
Instances
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
Project Name: comic/grand-challenge.org
Commit Name: 4f8a3739ec24cd07cad430bc5bfaaf095c6b3582
Time: 2020-01-17
Author: code@jmsmkn.com
File Name: app/tests/cases_tests/test_forms.py
Class Name:
Method Name: test_upload_some_images