Tree admin exception on news and events admin page #75

Closed
darbula opened this Issue Mar 28, 2013 · 2 comments

Projects

None yet

2 participants

Contributor
darbula commented Mar 28, 2013

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.

Owner
evildmp commented Mar 28, 2013

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

Contributor
darbula commented Mar 28, 2013

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

@darbula darbula closed this Mar 28, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment