I have a Django project where the model has two classes - Equity and Article. Within the Equity class I used to have the following code which worked smoothly