67c1968de6784b49dc1c9d7ad8aec824fb1d2b49,app/grandchallenge/cases/views.py,ImageViewSet,ImageViewSet_1,#,57
Before Change
class ImageViewSet(ReadOnlyModelViewSet):
serializer_class = ImageSerializer
queryset = Image.objects.all()
permission_classes = (DjangoObjectPermissions,)
filter_backends = (
DjangoFilterBackend,
ObjectPermissionsFilter,
After Change
class ImageViewSet(ReadOnlyModelViewSet):
serializer_class = ImageSerializer
queryset = Image.objects.all().prefetch_related(
"files",
"archive_set",
"componentinterfacevalue_set__algorithms_jobs_as_input",
)
permission_classes = (DjangoObjectPermissions,)
filter_backends = (
DjangoFilterBackend,
ObjectPermissionsFilter,
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: comic/grand-challenge.org
Commit Name: 67c1968de6784b49dc1c9d7ad8aec824fb1d2b49
Time: 2020-08-28
Author: 12661555+jmsmkn@users.noreply.github.com
File Name: app/grandchallenge/cases/views.py
Class Name: ImageViewSet
Method Name: ImageViewSet_1
Project Name: comic/grand-challenge.org
Commit Name: f8504c615f135fb6fd4443d026b8425e6818e3a1
Time: 2019-06-27
Author: code@jmsmkn.com
File Name: app/grandchallenge/reader_studies/views.py
Class Name: ReaderStudyViewSet
Method Name: ReaderStudyViewSet_1
Project Name: comic/grand-challenge.org
Commit Name: 57ecfe3b4360e88a0b006765f6aa6e9b7e71350c
Time: 2019-07-22
Author: code@jmsmkn.com
File Name: app/grandchallenge/reader_studies/views.py
Class Name: AnswerViewSet
Method Name: AnswerViewSet_1