tehfink  committed 8deebbc

simplified FaqEntry's get_absolute_url

  • Participants
  • Parent commits f45daaa
  • Branches cms-2.X

Comments (0)

Files changed (1)

File cmsplugin_faq/

         from django.template.defaultfilters import slugify
         #create the FaqEntry's url as a combination of the Page's url + '#' + the slugified anchor
-        url = "%s#%s" % (Page.objects.get(id=self.page_id).get_absolute_url(language='self.language'), slugify(self.topic))
+        url = "%s#%s" % (, fallback=False), slugify(self.topic))
+#        import ipdb; ipdb.set_trace()
         #supposedly the following is not necessary. but i haven't been able to get it working with multilingual otherwise
         #check if multilingual middleware is installed