Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 28 by michael.martinides: Add extra context on send_notice
http://code.google.com/p/django-notification/issues/detail?id=28
What steps will reproduce the problem?
I need to pass an extra context to render my notice message. I think I'm
not the only one.
These resolves the issue
notification/models.py (revision 159)
notification/models.py (working copy)
@@ -381,9 +381,11 @@
verbose_name = _('observed item')
verbose_name_plural = _('observed items')
- def send_notice(self):
+ def send_notice(self, **kwargs):
+ extra_context = {'observed':self.observed_object}
+ extra_context.update(**kwargs)
send([self.user], self.notice_type.label,
- {'observed': self.observed_object})
+ extra_context)
def observe(observed, observer, notice_type_label, signal='post_save'):
--
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
-~----------~----~----~----~------~----~------~--~---