Mercurial > public > sg101
annotate bio/signals.py @ 1184:fbfb1a9c70e2
Make donations business a list.
Paypal is now returning a different business email in IPN messages.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sun, 17 Oct 2021 14:40:53 -0500 |
parents | 0b6bf9c5a982 |
children |
rev | line source |
---|---|
bgneal@44 | 1 """ |
bgneal@919 | 2 Signals for the bio application |
bgneal@44 | 3 """ |
bgneal@471 | 4 import django.dispatch |
bgneal@204 | 5 |
bgneal@471 | 6 # |
bgneal@471 | 7 # This signal is sent whenever a profile has had its textual content updated. |
bgneal@471 | 8 # The provided arguments to the receiver function are: |
bgneal@471 | 9 # - sender - the profile model instance |
bgneal@471 | 10 |
bgneal@471 | 11 profile_content_update = django.dispatch.Signal(providing_args=[]) |
bgneal@471 | 12 |
bgneal@471 | 13 |
bgneal@471 | 14 def notify_profile_content_update(profile): |
bgneal@471 | 15 """ |
bgneal@471 | 16 Convenience function to send the profile content update signal. |
bgneal@471 | 17 |
bgneal@471 | 18 """ |
bgneal@471 | 19 profile_content_update.send_robust(profile) |