On Tue, Feb 10, 2009 at 4:48 PM, bkev <krban...@gmail.com> wrote: > > Hmm...It is just a normal python string, but when I try 'Smith' in > self.lastname, I get a "ManyRelatedManager is not iterable" error. Any > ideas? > > Thanks again, > -bkev > > > Sorry I'm an idiot, I read lastname in the wrong place, what you'll want to do for a manytomany is something like if self.lastname.filter(lastname__contains="Smith")[:1]:
Alex -- "I disapprove of what you say, but I will defend to the death your right to say it." --Voltaire "The people's good is the highest law."--Cicero --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---