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.
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: 4f9f921b081c523744c7bf24d959a0db39629563@5619 bcc190cf-cafb-0310-a4f2-bffc1f526a37

Instagram/django,t11e/django,Smarsh/django,django-nonrel/django-nonrel,jamespacileo/django-france,Instagram/django,sam-tsai/django-old,django-nonrel/django-nonrel,t11e/django,hugs/django,sam-tsai/django-old,bfirsh/django-old,hugs/django,Smarsh/django,bfirsh/django-old,django-nonrel/django-nonrel,skevy/django,Smarsh/django,dcramer/django-compositepks,sam-tsai/django-old,alex/django-old,dcramer/django-compositepks,disqus/django-old,alex/django-old,Instagram/django,skevy/django,mitsuhiko/django,t11e/django,sam-tsai/django-old,jamespacileo/django-france,disqus/django-old,jamespacileo/django-france,alex/django-old,dcramer/django-compositepks,bfirsh/django-old,skevy/django,mitsuhiko/django,Smarsh/django,mitsuhiko/django,hugs/django,disqus/django-old