What I tried to build is stopped by the fact that I am incorrectly
assuming that a ManyToMany field is updated at the time Menu.save() is
called (or post_save signal handler called in this case). These two
methods of customizing what happens after you save an object DO NOT
apply to ManyToMany fiel
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
Hello,
I am trying to implement a cache system using the post_save signal.
The problem is the code below, a Thread subclass that ends up calling
run(), the cache database never runs. It's driving me crazy!!! Is
there something going on with the way Django cache's queries which is
what I expect? C
3 matches
Mail list logo