Skip to content
This repository has been archived by the owner on Mar 5, 2021. It is now read-only.

Tree admin exception on news and events admin page #75

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

Tree admin exception on news and events admin page #75

darbula opened this issue Mar 28, 2013 · 2 comments

Comments

@darbula
Copy link
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.

@evildmp
Copy link
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

@darbula
Copy link
Contributor Author

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 as completed Mar 28, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants