1👍
✅
There isn’t a straight forward way to do this. The url pattern that uses include
has no access to the view to decorate it.
You could try writing a modified version of include that decorates any included url patterns. This might be tricky, because the included url patterns could use include
again.
Source:stackexchange.com