djnago update, and to csv function