Allow resources to specify the name to use for links.

Review Request #6125 — Created July 21, 2014 and submitted

Information

Djblets
release-0.7.x
fb82a38...

Reviewers

WebAPIResource subclasses can now set the link_name attribute to the
desired name for any links from other resources. Previously, this was
hard-coded to name_plural, and it still defaults to that.

This makes it easier to change a resource's name without affecting the
link, or to just choose a nicer name for links.

Made use of this in another change. Saw the proper link name.

reviewbot
  1. Tool: Pyflakes
    Processed Files:
        djblets/webapi/resources.py
    
    
    
    Tool: PEP8 Style Checker
    Processed Files:
        djblets/webapi/resources.py
    
    
  2. 
      
david
  1. Ship It!

  2. 
      
chipx86
Review request changed

Status: Closed (submitted)

Change Summary:

Pushed to release-0.8.x (5ccfd86)
chipx86
Review request changed

Status: Closed (submitted)

Change Summary:

Pushed to master (5ccfd86)
Loading...