docs: def urls(cls, name_prefix=None):
          """
          A convenience method for hooking up the URLs.
  
          This automatically adds a list & a detail endpoint to your URLconf.
  
          :param name_prefix: (Optional) A prefix for the URL's name (for
              resolving). The default is ``None``, which will autocreate a prefix
              based on the class name. Ex: ``BlogPostResource`` ->
              ``api_blogpost_list``
          :type name_prefix: string
  
          :returns: A list of ``url`` objects for ``include(...)``
          """
          return [
              url(r'^$', cls.as_list(), name=cls.build_url_name('list', name_prefix)),
              url(r'^(?P<pk>[\w-]+)/$', cls.as_detail(), name=cls.build_url_name('detail', name_prefix)),
          ]