I modified the above _cached_menu method to just create a new object
every time (shown below). It only seems to get the links right, a
ManyToMay field, after I save it _twice_? Hmmm...how I get the updated
many2many table?

def _cache_menu(self, menu, xhtml):
        """
        Stores xhtml into the CachedMenuXhtml table where the row's
menu matches
        the menu_obj.
        """
        if menu and xhtml:
            cm = self.CachedMenuXhtml(menu=menu,xhtml=xhtml)
            cm.save()


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to