#27842: class GenericSitemap doesn't handle "protocol" in __init__ -------------------------------------+------------------------------------- Reporter: chex | Owner: chex Type: Uncategorized | Status: assigned Component: contrib.sitemaps | Version: 1.10 Severity: Normal | Resolution: Keywords: sitemaps | Triage Stage: genericsitemap | Unreviewed Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 1 | UI/UX: 0 -------------------------------------+------------------------------------- Description changed by chex:
Old 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' > }}} > \\ > [https://docs.djangoproject.com/en/stable/_modules/django/contrib/sitemaps/#GenericSitemap > GenericSitemap source] > Why not to pass protocol in info_dict argument? New 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' }}} \\ [https://docs.djangoproject.com/en/1.10/_modules/django/contrib/sitemaps/#GenericSitemap GenericSitemap source] Why not to pass protocol in info_dict argument? -- -- Ticket URL: <https://code.djangoproject.com/ticket/27842#comment:3> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/064.f8842ae022998cc99e3f681c12ed46c2%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.