We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
backend: mixer.backend.django
mixer.backend.django
I get an infinite loop then I try to create objects for model with two ForeignKey fields and relation to self.
For example: command mixer.blend(SAPDepartment) with the model:
mixer.blend(SAPDepartment)
class SAPDepartment(models.Model): sap_name = models.CharField(max_length=150, null=False, blank=False) sap_id = models.IntegerField() upper_dep = models.ForeignKey('self', related_name='low_dep', on_delete=models.SET_NULL, null=True) main_dep = models.ForeignKey('self', related_name='main_department', on_delete=models.SET_NULL, null=True)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
backend:
mixer.backend.django
I get an infinite loop then I try to create objects for model with two ForeignKey fields and relation to self.
For example:
command
mixer.blend(SAPDepartment)
with the model:The text was updated successfully, but these errors were encountered: