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?

Thanx in advance!
--~--~---------~--~----~------------~-------~--~----~
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