Ticket #12836 - Added a test to assure permalink wraps method attributes #360

Merged
merged 1 commit into from Sep 16, 2012

Conversation

Projects
None yet
2 participants
Contributor

calebsmith commented Sep 8, 2012

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.

apollo13 merged commit a630d08 into django:master Sep 16, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment