문제

I have a question about how could I update a legacy table after an update in the auth_user table.

I would like to do some changes in other tables just after the "admin" changes the data of one of the users.

Is there a way to call a function when the auth_user's table is modificated?

Any help would be appreciated.

Thanks :)

도움이 되었습니까?

해결책

Yoy can use post_save signals. It is exactly what you are looking for. Lear more on https://docs.djangoproject.com/en/1.4/topics/signals/

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top