pinax / pinax-notifications

user notification management for the Django web framework
MIT License
752 stars 211 forks source link

cannot send iterable users list to send notification #18

Closed ghost closed 11 years ago

ghost commented 11 years ago

From the docs:

notification.send([to_user], "friends_invite", {"from_user": from_user}) users is an iterable of User objects to send the notification to.

I'm not sure to understand, a list [] in python is an iterable right? If I pass a list of users to the send function I get:

TypeError: int() argument must be a string or a number, not 'list'

but if I pass only one user the function keeps going.

Is it a bug or did I miss something?