{{{
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?
Thx.
--
Ticket URL: <https://code.djangoproject.com/ticket/27842>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
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?
> Thx.
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/stable/_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:1>
* owner: nobody => chex
* status: new => assigned
--
Ticket URL: <https://code.djangoproject.com/ticket/27842#comment:2>
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>
Comment (by chex):
[https://github.com/django/django/pull/8065 pr]
--
Ticket URL: <https://code.djangoproject.com/ticket/27842#comment:4>
* has_patch: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/27842#comment:5>
* needs_docs: 0 => 1
* type: Uncategorized => New feature
* needs_tests: 0 => 1
* stage: Unreviewed => Accepted
Comment:
Looks okay at first glance. Documentation and tests are also required.
--
Ticket URL: <https://code.djangoproject.com/ticket/27842#comment:6>
Comment (by chex):
Update [https://github.com/django/django/pull/8065 PR] with tests.
--
Ticket URL: <https://code.djangoproject.com/ticket/27842#comment:7>
Comment (by Tim Graham):
And documentation? Please update the ticket flags when you update the
patch. It looks like the tests are testing more than just what's changed.
It's fine to increase test coverage but please do it in a separate commit
(perhaps a separate PR that precedes this one).
--
Ticket URL: <https://code.djangoproject.com/ticket/27842#comment:8>
* needs_tests: 1 => 0
--
Ticket URL: <https://code.djangoproject.com/ticket/27842#comment:9>
* needs_docs: 1 => 0
Comment:
Update [https://github.com/django/django/pull/8065 pr] with documentation.
Non specific to the ticket tests are moved to another
[https://github.com/django/django/pull/8075 pr].
--
Ticket URL: <https://code.djangoproject.com/ticket/27842#comment:10>
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>
Old 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',
> )
> }}}
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:12>
* stage: Accepted => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/27842#comment:13>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"9f21e35100b022b31fe723323db85c2cb28b16b8" 9f21e35]:
{{{
#!CommitTicketReference repository=""
revision="9f21e35100b022b31fe723323db85c2cb28b16b8"
Fixed #27842 -- Added protocol kwarg to GenericSitemap.__init__().
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/27842#comment:14>