evildmp / Arkestra

Arkestra extends Django CMS to provide an intelligent semantic web publishing system for organisations and institutions.
http://arkestra-project.org
BSD 2-Clause "Simplified" License
139 stars 27 forks source link

Tree admin exception on news and events admin page #75

Closed darbula closed 11 years ago

darbula commented 11 years ago

When loading news and events change list in admin /admin/news_and_events/event/ django raises following Exception:

Exception Type: TypeError
Exception Value: 'unicode' object is not callable
...env\lib\site-packages\treeadmin\admin.py in indented_short_title
            r += item.short_title() 

It seems that treeadmin is expecting callable for short_title and in arkestra models short_title is unicode.

evildmp commented 11 years ago

On Thu, Mar 28, 2013, darbula notifications@github.com wrote:

When loading news and events change list in admin /admin/ news_and_events/event/ django raises following Exception:

Exception Type: TypeError Exception Value: 'unicode' object is not callable ...env\lib\site-packages\treeadmin\admin.py in indented_short_title r += item.short_title()

It seems that treeadmin is expecting callable for short_title and in arkestra models short_title is unicode.

I had to patch treeadmin for this.

https://github.com/evildmp/django-treeadmin

I made a pull request to piquadrat for it, and REQUIREMENTS.txt should have picked up my fork:

https://github.com/evildmp/Arkestra/blob/develop/REQUIREMENTS.txt#L11

Sorry for the inconvenience.

Daniele

darbula commented 11 years ago

Ah sorry on one computer I have installed form your fork, but on the other form the piquadrat's. Now it works.