i have a problem that ManyToManyField in post_save signal doesn't seem
to be updated, i get wrong row count although i get right row count on
response/web page.
is this some kind of caching that i need to specify not to cache or
something similar?
part of code with problem:
---
def sorted_photos_change(sender, **kwargs):
 gallery = kwargs['instance']
 # prints number of photos before change instead current number of
photos
 print gallery.photos.count()
 [...]

post_save.connect(sorted_photos_change, sender=Gallery)
---

have manytomany fields for signal instance been committed when
post_save signal is emitted?

Aljosa Mohorovic
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to