mirror of
https://github.com/django-q2/django-q2.git
synced 2026-10-04 13:48:11 +08:00
docs: Added a report example
Also added a test based on the example.
This commit is contained in:
@@ -35,5 +35,9 @@ def get_task_name(task):
|
||||
return task.name
|
||||
|
||||
|
||||
def get_user_id(user):
|
||||
return user.id
|
||||
|
||||
|
||||
def result(obj):
|
||||
print('RESULT HOOK {} : {}'.format(obj.name, obj.result))
|
||||
|
||||
Reference in New Issue
Block a user