#NEWLINE# def makeModerator( username ) : #NEWLINE# #INDENT# u = User . objects . get ( username = username ) #NEWLINE# ct = ContentType . objects . get_for_model ( Comment ) #NEWLINE# p = Permission . objects . get ( content_type = u , codename = 'can_moderate' ) #NEWLINE# u . user_permissions . add ( p )