I am using pycharm IDE for python development it works perfectly fine for django code so suspected that converting tabs to spaces is default behaviour, however in python IDE
ctr+alt+shift+L -> reformat whole file :)