| Issue 40: | 'Document' object has no attribute '?' | |
| 1 person starred this issue and may be notified of changes. | Back to list |
The Documentation states that one registers the models with:
> mptt.register(Document, order_insertion_by='title')
this fails for me with a `No Atrribute Error` see output
the fix was to register as follows:
> mptt.register(Document, order_insertion_by=['title'])
This is because _insertion_target_filters(node, order_insertion_by): is
trying to loop over each element in order_insertion_by. So when a single
string is sent then the out come is each letter of the string.
...
for field in order_insertion_by:
value = getattr(node, field)
...
Mar 12, 2009
#1
cou...@gmail.com
Jul 3, 2009
This change is in SVN, with a corresponding change in the SVN documentation
Status:
Invalid
|