Skip to content

Commit

Permalink
used lazy version of reverse in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
bmispelon committed May 2, 2024
1 parent 4df3482 commit c4de8d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/ref/contrib/syndication.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1148,11 +1148,11 @@ Another option is to have a view in your project that renders the XSLT document.
You can then link it like so::

from django.contrib.syndication.views import Feed
from django.urls import reverse
from django.urls import reverse_lazy


class FeedWithStylesheetView(Feed):
... # author, etc.
xsl_stylesheet_url = reverse("your-custom-view-name")
xsl_stylesheet_url = reverse_lazy("your-custom-view-name")

.. _xslt stylesheet: https://developer.mozilla.org/en-US/docs/Web/XSLT/Transforming_XML_with_XSLT

0 comments on commit c4de8d5

Please sign in to comment.