Changes between Version 1 and Version 2 of Ticket #26939


Ignore:
Timestamp:
Jul 25, 2016, 9:46:27 AM (8 years ago)
Author:
Tim Graham
Comment:

Seems to be a regression in 1.9 (the sample code works in 1.8) although I've having trouble bisecting it due to other crashes in mezzanine at various points in Django's history. If you could create a minimal project that reproduces the problem without mezzazine, that would be ideal as we'll need a regression test anyway.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #26939

    • Property Component Uncategorizedcontrib.sitemaps
    • Property Triage Stage UnreviewedAccepted
    • Property Summary Django 1.9.8 Sitemaps is broken due to "isinstance() arg 2 must be a class, type, or tuple of classes and types"sitemaps crashes with "isinstance() arg 2 must be a class, type, or tuple of classes and types"
  • Ticket #26939 – Description

    v1 v2  
    22The following code failed:
    33{{{
     4from django.contrib.sitemaps.views import sitemap
    45from mezzanine.core.sitemaps import DisplayableSitemap
    5 sitemaps = {"sitemaps": {"displayable": DisplayableSitemap, 'views': SwiftypeSitemap}}
    6 urlpatterns += patterns("django.contrib.sitemaps.views", ("^sitemap\.xml$", "sitemap", sitemaps))
     6sitemaps = {"sitemaps": {"displayable": DisplayableSitemap}}
     7urlpatterns += [url("^sitemap\.xml$", sitemap, sitemaps)]
    78}}}
    89The trace back:
Back to Top