Add a ReviewRequest.get_display_id to generalize the ID field.
Review Request #2006 — Created Dec. 16, 2010 and submitted — Latest diff uploaded
Add a ReviewRequest.get_display_id to generalize the ID field. In a lot of places we had to check both id and local_id in order to do something interesting for the user (links, display on the template, etc). This change generalizes that with a get_display_id() method, and fixes the ID printed in the review request box and trophy calculation.
Ran unit tests, checked site display.
reviewboard/reviews/models.py |
---|
reviewboard/templates/reviews/review_flags.js |
---|
reviewboard/templates/reviews/trophy_box.html |
---|
reviewboard/webapi/resources.py |
---|
reviewboard/webapi/tests.py |
---|