removed duplicate code to get list of django model fields