#NEWLINE# def create_resource_permission( sender , instance , created , **kwargs ) : #NEWLINE# #INDENT# if created : #NEWLINE# #INDENT# assign_perm ( 'change_resource' , instance . created_by , instance ) #NEWLINE# assign_perm ( 'delete_resource' , instance . created_by , instance )