David Chambers  committed 4ff0f1e

Renamed `fetch_comments` `comments`. The original name was chosen to discourage template authors from calling the method recklessly. This is no longer a concern now that comments can usually be retrieved from the cache.

  • Participants
  • Parent commits 2858c7f
  • Branches default

Comments (0)

Files changed (2)

         return self
-    def fetch_comments(self):
+    def comments(self):
         if not self._thread:
             return []
         return http.HttpResponseRedirect('redirect/')
     context = _defaults(request, context={
-        'comments': document.fetch_comments(),
+        'comments': document.comments(),
         'document': document,
         'form': form,
         'new_comment': comment,