#NEWLINE# @ classmethod #NEWLINE# def get_urlpatterns( self ) : #NEWLINE# #INDENT# patterns = [ ] #NEWLINE# patterns . append ( url ( ( ( '^' + self . method_name ) + '/$' ) , self . as_view ( { #NEWLINE# #INDENT# 'get' : 'list' , #NEWLINE# #UNINDENT# } ) , name = ( self . base_name + '_list' ) ) ) #NEWLINE# patterns . append ( url ( ( ( '^' + self . method_name ) + '/(?P<pk>[a-zA-Z0-9\\-]+)/$' ) , self . as_view ( { #NEWLINE# #INDENT# 'get' : 'retrieve' , #NEWLINE# 'put' : 'update' , #NEWLINE# 'post' : 'update' , #NEWLINE# 'delete' : 'destroy' , #NEWLINE# 'patch' : 'partial_update' , #NEWLINE# #UNINDENT# } ) , name = ( self . base_name + '_detail' ) ) ) #NEWLINE# return patterns