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

from django.contrib.sitemaps import Sitemap


class MininewsSitemap(Sitemap):

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

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

Remove defaults from the sitemap.py that should not be set in Mininews.
Remove defaults from the sitemap.py that should not be set in Mininews.

  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
  
Remove defaults from the sitemap.py that should not be set in Mininews.
## Code Before:
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

## Instruction:
Remove defaults from the sitemap.py that should not be set in Mininews.
## Code After:
from django.contrib.sitemaps import Sitemap


class MininewsSitemap(Sitemap):

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

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