Ticket #11358: 11358.patch
File 11358.patch, 1.3 KB (added by , 14 years ago) |
---|
-
django/contrib/sitemaps/__init__.py
79 79 def items(self): 80 80 from django.contrib.sites.models import Site 81 81 current_site = Site.objects.get_current() 82 return current_site.flatpage_set. all()82 return current_site.flatpage_set.filter(registration_required=False) 83 83 84 84 class GenericSitemap(Sitemap): 85 85 priority = None -
docs/ref/contrib/sitemaps.txt
217 217 The :class:`django.contrib.sitemaps.FlatPageSitemap` class looks at all 218 218 :mod:`flatpages <django.contrib.flatpages>` defined for the current 219 219 :setting:`SITE_ID` (see the 220 :mod:`sites documentation <django.contrib.sites>`) and 220 :mod:`sites documentation <django.contrib.sites>`) 221 where :attr:`~Flatpage.registration_required`\=False and 221 222 creates an entry in the sitemap. These entries include only the 222 223 :attr:`~Sitemap.location` attribute -- not :attr:`~Sitemap.lastmod`, 223 224 :attr:`~Sitemap.changefreq` or :attr:`~Sitemap.priority`.