meeb / django-distill

Minimal configuration static site generator for Django
MIT License
441 stars 35 forks source link

Add resolver match to request #83

Closed veselosky closed 10 months ago

veselosky commented 10 months ago

Hi @meeb, I found a pretty esoteric bug in distill. I have some views that happen to rely on the request.resolver_match object for some logic, but distill's override of resolve_request doesn't attach the resolver match to the request as Django's does. Here's a patch (with test) to correct that issue.

meeb commented 10 months ago

Excellent, thanks for the contribution! Certainly seems sensible to me. I'll merge this and give it a thorough check before bundling it into the next release.