Fixed #1015 -- Fixed decorator_from_middleware to return a real decorator even
commit116dbffdd5a7936ef16c458621aa64745eb6f6e5
authormtredinnick <mtredinnick@bcc190cf-cafb-0310-a4f2-bffc1f526a37>
Thu, 5 Jul 2007 11:10:27 +0000 (5 11:10 +0000)
committermtredinnick <mtredinnick@bcc190cf-cafb-0310-a4f2-bffc1f526a37>
Thu, 5 Jul 2007 11:10:27 +0000 (5 11:10 +0000)
tree682ad710dedf3ec4ecfd1eb368bbd273d479df19
parentdb528c0d0be44c1d5b568a0f642ecede5da3c0ce
Fixed #1015 -- Fixed decorator_from_middleware to return a real decorator even
when arguments are given. This looks a bit ugly, but it's fully backwards
compatible and all the extra work is done at import time, so it shouldn't have
any real performance impact.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@5619 bcc190cf-cafb-0310-a4f2-bffc1f526a37
django/utils/decorators.py