fc0614f5417e6e368bdefb008f6cdf84b0f61c1f,app/comicmodels/models.py,ComicSite,get_admins,#ComicSite#,491

Before Change


    def get_admins(self):
         Return array of all users that are in this comicsites admin group, including superusers
        
        User = get_user_model()
        admins = User.objects.filter(
            Q(groups__name=self.admin_group_name()) | Q(
                is_superuser=True)).distinct()
        return admins

    def get_absolute_url(self):
         With this method, admin will show a "view on site" button 

After Change



    def get_admins(self):
         Return all users that are in this comicsites admin group 
        return self.admins_group.user_set.all()

    def get_participants(self):
         Return all participants of this challenge 
        return self.participants_group.all()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: comic/grand-challenge.org
Commit Name: fc0614f5417e6e368bdefb008f6cdf84b0f61c1f
Time: 2017-12-14
Author: jamesmeakin@gmail.com
File Name: app/comicmodels/models.py
Class Name: ComicSite
Method Name: get_admins


Project Name: AlexsLemonade/refinebio
Commit Name: d5db29d203e697ace306323e7bb1d433a8dcb3d2
Time: 2017-07-20
Author: kurt.wheeler91@gmail.com
File Name: workers/data_refinery_workers/processors/utils.py
Class Name:
Method Name: start_job


Project Name: AlexsLemonade/refinebio
Commit Name: 70377c624fdc514cd5897985c67c922cba613c1d
Time: 2018-08-27
Author: kurt.wheeler91@gmail.com
File Name: foreman/data_refinery_foreman/surveyor/external_source.py
Class Name: ExternalSourceSurveyor
Method Name: queue_downloader_jobs