Wednesday, February 10, 2016

AttributeError at /sitemap.xml

It seems that django/contrib/sitemaps/__init__.py line 146 causes an attribute error sometimes as such:

AttributeError: 'list' object has no attribute 'filter'

I think this is because it always expects a queryset and fails when a list is provided.

Is this a known issue, or not an issue at all?

Thank you guys.

Sorry if I broke any rules (I'm new here)


Kelvin

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/8e12c895-f697-424c-bf09-ef658a8033eb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment