how to add the id of a model as foreign key in django code example
Example: how to get foregine key field from models
>>> SubCategory._meta.get_field('category').remote_field.model.__name__
>>> 'Category'
>>> SubCategory._meta.get_field('category').remote_field.model.__name__
>>> 'Category'