from django.contrib.sitemaps import Sitemap


class MininewsSitemap(Sitemap):

    def items(self):
        return self.model.objects.live()

    def lastmod(self, obj):
        return obj.modified

from django.contrib.sitemaps import Sitemap


class MininewsSitemap(Sitemap):

    # Let's assume that an article - once published - will not change.
    changefreq = "never"

    # Define the model class here to make it easier to customise this class.
    model = None

    def items(self):
        return self.model.objects.live()

    def lastmod(self, obj):
        return obj.modified

--- 
+++ 
@@ -2,12 +2,6 @@
 
 
 class MininewsSitemap(Sitemap):
-
-    # Let's assume that an article - once published - will not change.
-    changefreq = "never"
-
-    # Define the model class here to make it easier to customise this class.
-    model = None
 
     def items(self):
         return self.model.objects.live()
Remove defaults from the sitemap.py that should not be set in Mininews.
