On Apr 15, 10:04 am, aabele <[EMAIL PROTECTED]> wrote:
> I have a customized save() method in model. If the record ir new
> (without ID) - then self.id type is unicode, otherwise self.id is
> integer. So when I try to do a  many-to-many relationship search - in
> first case it doesn't work, in second - works like a charm.
>
> def save(self):
>     super(message, self).save()
>     for single_group in self.group.all():
>         print '%r' % single_group.id
>
> Is this some kind of bug in django?

What is your custom save() above doing other than printing out the
many to many objects' ids?

You say that the m2m search doesn't work. Do you want to explain how
you have implemented this search that's not working (the queryset you
use, for example)?


--~--~---------~--~----~------------~-------~--~----~
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