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.
refs #12836 - Added a test to assure permalink wraps method attributes