From 1b8bbb55fe63183db870db1d71dc01fd9d672c5f Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Thu, 19 Jun 2014 08:49:15 +0000 Subject: [PATCH] Fix ViewName middleware after accidentally changing . to + --- gergelypolonkaiweb/middleware/viewname.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gergelypolonkaiweb/middleware/viewname.py b/gergelypolonkaiweb/middleware/viewname.py index ac7d576..0a36f5e 100644 --- a/gergelypolonkaiweb/middleware/viewname.py +++ b/gergelypolonkaiweb/middleware/viewname.py @@ -1,5 +1,4 @@ class ViewNameMiddleware(object): def process_view(self, request, view_func, view_args, view_kwargs): - request.view_name = "." - + join((view_func.__module__, view_func.__name__)) + request.view_name = ".".join((view_func.__module__, view_func.__name__))