Skip to content
Browse files

Fixed error in

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent cf94b24 commit ea34c1122babbecaf48ea98e03264583adcb5ba2 adrian committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 django_website/
4 django_website/
@@ -1,7 +1,7 @@
from django.contrib.sitemaps import Sitemap
from import Entry
from 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.

0 comments on commit ea34c11

Please sign in to comment.
Something went wrong with that request. Please try again.