django-model-utils/tests/signals.py

7 lines
177 B
Python
Raw Normal View History

2017-07-10 12:35:39 +00:00
def pre_save_test(instance, *args, **kwargs):
instance.pre_save_runned = True
2017-07-10 12:35:39 +00:00
def post_save_test(instance, created, *args, **kwargs):
instance.post_save_runned = True