old_contents: 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
  
new_contents: from django.contrib.sitemaps import Sitemap
  
  
  class MininewsSitemap(Sitemap):
  
      def items(self):
          return self.model.objects.live()
  
      def lastmod(self, obj):
          return obj.modified
  
subject: Remove defaults from the sitemap.py that should not be set in Mininews.