#NEWLINE# def has_add_permission( self , request ) : #NEWLINE# #INDENT# '\n        Returns True if the given request has permission to add an object.\n        Can be overridden by the user in subclasses.\n        ' #NEWLINE# opts = self . opts #NEWLINE# codename = get_permission_codename ( 'add' , opts ) #NEWLINE# return request . user . has_perm ( ( '%s.%s' % ( request . app_label , codename ) ) )