Recursion error calling a function using a post-save signal – SEO
I have a Category model, where the ForeignKey is to self. class Category(SEO, MetaData): parent = models.ForeignKey('self', blank=True, null=True, verbose_name='parent category', on_delete=models.CASCADE) path = ArrayField(models.IntegerField(), blank=True, null=True) I introduced the path field, to avoid recursion in widget, and do it…