Let me answer this then to point out the obvious and in response to your comment:
So exactly what was wrong with my initial revision? You honestly did not understand it?
No, I honestly did not understand it and I still don't. But that might also be caused by the fact that I don't do python, let alone Django.
What your initial revision simply failed was the context that is needed to quickly grasp where that stack trace was coming from or how readers of that question could quickly reproduce your result. Instead you decided to run into a room full of people and you started yelling: We're going down, we're going down! Don't be surprised that the others respond with: wait, are we on a plane? A submarine? An elevator?
Don't ask me to create or assume the context you're posing your question. That you are already 100% clear about the context is understandable because you're probably staring at that code and output for the last hour or so.
I have not. I just had breakfast and a cup of coffee.
So, yes. That initial revision was unclear for casual readers, close votes and down votes were warranted. The quick moderation helped as you responded with an edit that helped to prevent closing from the close vote queue. In the current revision the question is not only clear for you but also clear and useful for future visitors, which is by far more important.
This type of moderation is, in my opinion, getting out of hand.
Meh, I think it worked, it got improved, despite that you disagree it needed that edit. I can live with the friction that might cause this now and then.
As the question is now in good shape maybe some of the close voters might notice and retract their close vote. Otherwise the votes will age away in 14 days. It would be a miracle if the down votes get reversed as I don't believe much down voters revisit the posts they voted on.
You're free to disagree with all of this, in the end we got a better question, which is all that counts.