А почему так не работает? Я ъочу чтобы contracter и tourists брались из одной модели - Tourists contracter = models.ForeignKey(Tourist, on_delete=models.CASCADE) tourists = models.ManyToManyField(Tourist)
ERRORS: documents.Contract.contracter: (fields.E304) Reverse accessor for 'Contract.contracter' clashes with reverse accessor for 'Contract.tourists'. HINT: Add or change a related_name argument to the definition for 'Contract.contracter' or 'Contract.tourists'. documents.Contract.tourists: (fields.E304) Reverse accessor for 'Contract.tourists' clashes with reverse accessor for 'Contract.contracter'. HINT: Add or change a related_name argument to the definition for 'Contract.tourists' or 'Contract.contracter'.