2b6d9479f3782b9d88c6d9d7372b891b19db9ae8,django/comicmodels/admin.py,RegistrationRequestsAdmin,process_rejection,#RegistrationRequestsAdmin#Any#Any#,322

Before Change


               
    def process_rejection(self,request,obj):                        
        obj.status = RegistrationRequest.REJECTED
        obj.changed = datetime.datetime.today()
        obj.save()
        
        obj.project.remove_participant(obj.user)                
        messages.add_message(request, messages.WARNING, "User ""+obj.user.username+""\

After Change


               
    def process_rejection(self,request,obj):                        
        obj.status = RegistrationRequest.REJECTED
        obj.changed = datetime.datetime.utcnow().replace(tzinfo=utc)
        //obj.changed = datetime.datetime.today()
        obj.save()
        
        obj.project.remove_participant(obj.user)                
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 6

Instances


Project Name: comic/grand-challenge.org
Commit Name: 2b6d9479f3782b9d88c6d9d7372b891b19db9ae8
Time: 2014-03-25
Author: =
File Name: django/comicmodels/admin.py
Class Name: RegistrationRequestsAdmin
Method Name: process_rejection


Project Name: comic/grand-challenge.org
Commit Name: 2b6d9479f3782b9d88c6d9d7372b891b19db9ae8
Time: 2014-03-25
Author: =
File Name: django/comicmodels/admin.py
Class Name: RegistrationRequestsAdmin
Method Name: process_acceptance


Project Name: comic/grand-challenge.org
Commit Name: 08da071a465b7cf187b1efe0c6349c385697c730
Time: 2014-03-25
Author: =
File Name: django/comicmodels/admin.py
Class Name: RegistrationRequestsAdmin
Method Name: process_acceptance


Project Name: comic/grand-challenge.org
Commit Name: 08da071a465b7cf187b1efe0c6349c385697c730
Time: 2014-03-25
Author: =
File Name: django/comicmodels/admin.py
Class Name: RegistrationRequestsAdmin
Method Name: process_rejection