idlesign/django-sitetree — Issue #33: Another breadcrumbs problem ))) 1.4
Author: vosi
Created: 2011-10-11 20:12:25+00:00
State: open

While we are thinking about userland breadcrumbs, there is an compatibility issue with breadcrumbs at contrib.admin (1.4).
Well, generally breadcrumbs is not an issue, its a symptom.

the problem leads to NoReverseMatch error cuz in django they refactored internal url calling, now all urls in django apps are called by lazy url calling using url names and namespaces

so, to deal it, one should define "sitetree_treeitem_changelist" url name in def get_urls(self): at admin.py

so here are kinda fixes
https://github.com/vosi/django-sitetree/commit/14ec05910966a77bc6b169c00f7e455161feeb21
https://github.com/vosi/django-sitetree/commit/713125b3511610d56904a4df69371f1370592c86
https://github.com/vosi/django-sitetree/commit/196628e00148f29969c8b211b42d3eec0796dd1b
should work ok in 1.3
there is only one bug with breadcrumbs in history... dont know how to fix it

i understand that is sure not wery quality bug fix, but i think that best fix would be to totally refactor admin side, maybe using inlines (for trees) and popups (for adding/editing trees) should be more contrib.admin-ish... what do you say?