django/django — pull request #360 by calebsmith (2012-09-08 16:57:04+00:00)
Title: Ticket #12836 - Added a test to assure permalink wraps method attributes

The fix diff at the top of the ticket was already applied: https://code.djangoproject.com/ticket/12836

The test diff provided further down was a doc test, and was not applied or was removed along with the other doc tests.

This pull request includes a test that assures the permalink decorator passes on attributes attached to the function it wraps. The test fails if the @wraps decorator is removed from permalink, and succeeds otherwise.