Skip to content

Commit

Permalink
Fixed error in djangoproject.com sitemaps.py
Browse files Browse the repository at this point in the history
git-svn-id: http://code.djangoproject.com/svn/djangoproject.com@3702 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
adrian committed Aug 31, 2006
1 parent cf94b24 commit ea34c11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 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):
Expand All @@ -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.
Expand Down

0 comments on commit ea34c11

Please sign in to comment.