This took me a couple of hours to figure out. I needed to process a csv file stored in a FileField, the catch was I had to do it on the fly, before saving the model to the database. Not only that, I also had to generate another file by …