python 3.x – How to extract the string or name of all foreign keys used in a model in django-pandas dataframe

I have data stored in a Django Model/Table which I am fetching in pandas dataframe via django-pandas (Version: 0.6.6) The model has 3 columns as foreign key viz: state_name, district_name and block_name The model.py is as: #################################################################################### BOOL_CHOICES = ((True, ‘Yes’), (False, ‘No’)) UNIT_CATEGORIES = ((‘AMFU’, ‘AMFU’), (‘DAMU’, ‘DAMU’)) class GroupDetail(models.Model): “””Village level Whatsapp Information … Read more