1👍
✅
The args
keyword argument to reverse
is an iterative. You should pass e.g. a list or a tuple instead.
In your case, however, the pattern
argument to configure
shouldn’t be an object. In the URL configuration the regex should contain an identifier of a pattern you want to configure, as described in part 3 of this tutorial. This way in configure
you’d fetch a pattern by its ID, and the reverse
call would look like this: reverse('configure', args=[newpattern.id])
.
Source:stackexchange.com