Closed GoogleCodeExporter closed 9 years ago
Thanks for the report. The doc currently assumes you use autodiscover. I'll
work on a
patch for the doc and/or the code to fix this.
Original comment by jpha...@gmail.com
on 24 Aug 2008 at 11:26
Hi,
I think I found out what's wrong here - new menu items always get rank=0, which
messes things up afterwards, such as move_down/move_up operations (move_up
button did
not appear for me at all, since you cannot move up with rank 0).
I attached a modified models.py with a fix for this, as well as a suggested
model
method for menu items, called 'final_url' (temporary name), which returns the
item's
url if exists, and if not - tries to get the url from item's named_url (if both
don't
exist, return None).
Hope you find this helpful,
Ophir
Original comment by firt...@gmail.com
on 26 Aug 2008 at 12:20
Attachments:
i made a diff for this which also add's *args, **kwargs to the save() methods.
but i'm afraid it's not more usefull then the models.py by firtzel as everyline
is
replaced because of the svn using non-unix style line endings :(
Original comment by v.oostv...@gmail.com
on 8 Sep 2008 at 2:28
Attachments:
Thanks guys for your help on this. It is now fixed in trunk.
Firtzel, yours patch for the fix works great. Although it's a good idea I
haven't
added the 'final_url' method. That's because I'm planning to make this app
generic to
handle any kind of tree structure. In a later version (hopefully coming soon),
it'll
be easier to add such extra methods.
Bas, thanks also for the suggestion on the save() method parameters. I've
explicitly
put force_insert and force_update to keep things consistent with Django.
Cheers!
Original comment by jpha...@gmail.com
on 9 Sep 2008 at 1:35
Original issue reported on code.google.com by
cope...@gmail.com
on 18 Aug 2008 at 2:09Attachments: