Remove possible KeyError when django test create table