X-Git-Url: http://git.ithinksw.org/philo.git/blobdiff_plain/2380185d894e5a62a20b91a0c5a3a48497fb3cfb..3b1d871f1c800bac4d1a9ce85ee2eb5c5c19a4f0:/models/nodes.py?ds=sidebyside diff --git a/models/nodes.py b/models/nodes.py index f46ddce..4fa4935 100644 --- a/models/nodes.py +++ b/models/nodes.py @@ -4,7 +4,7 @@ from django.contrib.contenttypes import generic from django.contrib.sites.models import Site from django.http import HttpResponse, HttpResponseServerError, HttpResponseRedirect from django.core.servers.basehttp import FileWrapper -from django.core.urlresolvers import resolve +from django.core.urlresolvers import resolve, clear_url_caches from django.template import add_to_builtins as register_templatetags from inspect import getargspec from philo.models.base import TreeEntity, Entity, QuerySetMapper @@ -68,6 +68,7 @@ class MultiView(View): urlpatterns = [] def render_to_response(self, node, request, path=None, subpath=None, extra_context=None): + clear_url_caches() if not subpath: subpath = "" subpath = "/" + subpath