Commits

Dmitri Lebedev committed 4a9867b

fix: key error

Comments (0)

Files changed (1)

example/django_partial_page/middleware.py

 		if getattr(request, 'no_partial', False):
 			return response
 
-		if len(getattr(request, 'partials', [])) == 0 and not getattr(request, 'as_partial', False):
+		if len(getattr(request, 'partials', [])) == 0 and not getattr(request, PARTIAL_ALL_PARAM, False):
 			return response
 		
 		if getattr(request, 'as_partial', False):