Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed error in djangoproject.com sitemaps.py

git-svn-id: http://code.djangoproject.com/svn/djangoproject.com@3702 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit ea34c1122babbecaf48ea98e03264583adcb5ba2 1 parent cf94b24
adrian authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 django_website/sitemaps.py
View
4 django_website/sitemaps.py
@@ -1,7 +1,7 @@
from django.contrib.sitemaps import Sitemap
from django_website.apps.blog.models import Entry
from django_website.apps.docs.models import Document
-from django.contrib.sites.models import Site
+from django.contrib.flatpages.models import FlatPage
import datetime
class FlatPageSitemap(Sitemap):
@@ -23,7 +23,7 @@ def priority(self, obj):
return 0.5
def items(self):
- return Site.objects.all()
+ return FlatPage.objects.all()
# lastmod is not implemented, because we have no way of knowing
# when FlatPages were last updated.
Please sign in to comment.
Something went wrong with that request. Please try again.