def post(self, req, *args, **kw): # @ugh - the /maps/ endpoint is used one way for get, another for post # we want post to pass through to the original... if self.not_post: match = urlresolvers.get_resolver('geonode.urls').resolve(req.path) return match.func(req, *args, **kw) else: return RedirectView.post(self, req, *args, **kw)
def post(self, req, *args, **kw): # @ugh - the /maps/ endpoint is used one way for get, another for post # we want post to pass through to the original... if self.not_post: match = urlresolvers.get_resolver('geonode.urls').resolve(req.path) return match.func(req, *args, **kw) else: return RedirectView.post(req, *args, **kw)