django-model-utils/tests/signals.py

6 lines
176 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
def post_save_test(instance, created, *args, **kwargs):
instance.post_save_runned = True