Fix ViewName middleware after accidentally changing . to +
This commit is contained in:
parent
ca1bd74985
commit
1b8bbb55fe
@ -1,5 +1,4 @@
|
|||||||
class ViewNameMiddleware(object):
|
class ViewNameMiddleware(object):
|
||||||
def process_view(self, request, view_func, view_args, view_kwargs):
|
def process_view(self, request, view_func, view_args, view_kwargs):
|
||||||
request.view_name = "."
|
request.view_name = ".".join((view_func.__module__, view_func.__name__))
|
||||||
+ join((view_func.__module__, view_func.__name__))
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user