Status: New Owner: ---- Labels: Type-Defect Priority-Medium New issue 26 by carl.j.meyer: handle multiple observations of one object by one user (different notice_types) http://code.google.com/p/django-notification/issues/detail?id=26
ObservedItemManager.get_for() (and stop_observing(), which calls it) accept only observed, observer, and signal as arguments, and get_for() uses self.get(...). This means it is not possible to differentiate based on notice_type, and if there are multiple observations with the same observed object, the same observer, and the same signal, get_for() (and thus also stop_observing()) will raise an error because multiple objects are returned. I have a use case where the same user may observe the same object in several different ways, differentiated based only on notice_type. It seems to me that get_for() should have an optional notice_type argument, and in any case should use self.filter() and return a queryset rather than using self.get(). -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. You may adjust your issue notification preferences at: http://code.google.com/hosting/settings --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pinax-updates" 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/pinax-updates?hl=en -~----------~----~----~----~------~----~------~--~---
