Added FK function to django output