#NEWLINE# def forwards( self , orm ) : #NEWLINE# #INDENT# 'Write your forwards methods here.' #NEWLINE# try : #NEWLINE# #INDENT# role = orm [ 'auth.Group' ] . objects . get ( name = 'Test Manager' ) #NEWLINE# perm = orm [ 'auth.Permission' ] . objects . get ( codename = 'manage_products' ) #NEWLINE# #UNINDENT# except ObjectDoesNotExist : #NEWLINE# #INDENT# pass #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# role . permissions . add ( orm )