On Jul 13, 6:10 am, Darthmahon <[EMAIL PROTECTED]> wrote:
> Alex,
>
> I don't understand what you mean by that? message.users.all prints out
> a list of users based on the many to many. I just want to check if the
> current user is in message.users.all - are you saying I can't because
> I am passing in a string, not an actual UserProfile instance?
>

You are probably not passing in a UserProfile. Have you tried using a
"raise Exception(value)" right after the signature of your filter to
see what you are getting?

@register.filter
def IN(value,arg):
    raise Exception("Type of value: %s, Type of arg: %s" %
(type(value), type(arg)))
    return value in arg

--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to