PdfDataSource model does not have a ForeignKey relationship to the Chatbot model. This is why the Chatbot object does not have the pdf_data_sources attribute. To fix this, we need to use a line in pdf_data_sources.py that establishes the ForeignKey relationship and provide the correct related_name which is used to create the reverse relation from Chatbot to PdfDataSource.
PdfDataSource model does not have a ForeignKey relationship to the Chatbot model. This is why the Chatbot object does not have the pdf_data_sources attribute. To fix this, we need to use a line in pdf_data_sources.py that establishes the ForeignKey relationship and provide the correct related_name which is used to create the reverse relation from Chatbot to PdfDataSource.