Opened 9 years ago
Last modified 9 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 )
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?
Note:
See TracTickets
for help on using tickets.