Opened 7 years ago

Last modified 7 years ago

#27842 closed New feature

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

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

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?
Thx.

Change History (0)

Note: See TracTickets for help on using tickets.
Back to Top