Author: adrian
Date: 2006-08-31 18:53:29 -0500 (Thu, 31 Aug 2006)
New Revision: 3702
Modified:
djangoproject.com/django_website/sitemaps.py
Log:
Fixed error in djangoproject.com sitemaps.py
Modified: djangoproject.com/django_website/sitemaps.py
===================================================================
--- djangoproject.com/django_website/sitemaps.py 2006-08-31 23:51:37 UTC
(rev 3701)
+++ djangoproject.com/django_website/sitemaps.py 2006-08-31 23:53:29 UTC
(rev 3702)
@@ -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 @@
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.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates
-~----------~----~----~----~------~----~------~--~---