Opened 8 years ago

Last modified 8 years ago

#27842 closed New feature

class GenericSitemap doesn't handle "protocol" in __init__ — at Version 1

Reported by: chex Owned by: nobody
Component: contrib.sitemaps Version: 1.10
Severity: Normal Keywords: sitemaps genericsitemap
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no

Description (last modified by chex)

django.contrib.sitemaps.GenericSitemap doesn't accept "protocol" in initial args and kwargs.

some_sitemap = GenericSitemap(
      info_dict={
            'queryset': SomeModel.objects.all(),
        },
        priority=0.6,
        changefreq='yearly',
    )
some_sitemap.protocol = 'https'


GenericSitemap source
Why not to pass protocol in info_dict argument?

Change History (1)

comment:1 by chex, 8 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.
Back to Top