#27842: class GenericSitemap doesn't handle "protocol" in __init__ -------------------------------------+------------------------------------- Reporter: chex | Owner: chex Type: New feature | Status: assigned Component: contrib.sitemaps | Version: 1.10 Severity: Normal | Resolution: Keywords: sitemaps | Triage Stage: Accepted genericsitemap | Has patch: 1 | 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/1.10/_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 or 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 as keyword argument? some_sitemap = GenericSitemap( info_dict={ 'queryset': SomeModel.objects.all(), }, priority=0.6, changefreq='yearly', protocol='https', ) }}} -- -- Ticket URL: <https://code.djangoproject.com/ticket/27842#comment:11> 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.54b1d545170628ad19bf964547323013%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.