(self)
| 5 | |
| 6 | class FlatPageSitemap(Sitemap): |
| 7 | def items(self): |
| 8 | if not django_apps.is_installed("django.contrib.sites"): |
| 9 | raise ImproperlyConfigured( |
| 10 | "FlatPageSitemap requires django.contrib.sites, which isn't installed." |
| 11 | ) |
| 12 | Site = django_apps.get_model("sites.Site") |
| 13 | current_site = Site.objects.get_current() |
| 14 | return current_site.flatpage_set.filter(registration_required=False) |
nothing calls this directly
no test coverage detected