Closed DamnedScholar closed 3 years ago
And in case anyone wants an example of why this change represents correct Python, this invocation works the same way. resolved.args
is a single list argument and *resolved.args
is a sequence of positional arguments.
@DamnedScholar Thanks for this. I was thinking of adding some tests for this as integrationstests, but since you are on the master branch I can't easily do that. Would you mind creating a new PR with a branch, or would you prefer that I create a branch and just cherry pick this commit?
Sorry. I did the smart thing by using branches to PR multiple changes at once, but was lazy about not making the main change on a branch. I'll branch my local repo and make another PR inside the hour.
This is actually a pretty substantial bug that I only now encountered when trying to reload a
DetailView
. I couldn't figure out why it wasn't able to read the URLconf until I walked through the code and discovered that the problem was immediately fixed when I applied the spread operators in theview()
invocation.