mirror of
https://github.com/django/django.git
synced 2025-05-05 22:47:32 +00:00
[1.7.x] Fixed typo in error message in django.contrib.sitemaps.
Backport of d81a9c50d8 from master
This commit is contained in:
parent
eb1600e9d1
commit
345281b880
@ -117,7 +117,7 @@ class Sitemap(object):
|
|||||||
class FlatPageSitemap(Sitemap):
|
class FlatPageSitemap(Sitemap):
|
||||||
def items(self):
|
def items(self):
|
||||||
if not django_apps.is_installed('django.contrib.sites'):
|
if not django_apps.is_installed('django.contrib.sites'):
|
||||||
raise ImproperlyConfigured("ping_google requires django.contrib.sites, which isn't installed.")
|
raise ImproperlyConfigured("FlatPageSitemap requires django.contrib.sites, which isn't installed.")
|
||||||
Site = django_apps.get_model('sites.Site')
|
Site = django_apps.get_model('sites.Site')
|
||||||
current_site = Site.objects.get_current()
|
current_site = Site.objects.get_current()
|
||||||
return current_site.flatpage_set.filter(registration_required=False)
|
return current_site.flatpage_set.filter(registration_required=False)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user