blob: b4ed0d1b7e9f4ccd6c3ab4bf0fe98e096893b6ca (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
import django.dispatch
tags_updated = django.dispatch.Signal(providing_args=['question'])
#todo: this one seems to be unused
edit_question_or_answer = django.dispatch.Signal(
providing_args=['instance', 'modified_by']
)
delete_post_or_answer = django.dispatch.Signal(
providing_args=['instance', 'deleted_by']
)
mark_offensive = django.dispatch.Signal(providing_args=['instance', 'mark_by'])
user_updated = django.dispatch.Signal(providing_args=['instance', 'updated_by'])
#todo: move this to authentication app
user_logged_in = django.dispatch.Signal(providing_args=['session'])
post_updated = django.dispatch.Signal(
providing_args=[
'post',
'updated_by',
'newly_mentioned_users'
]
)
|