You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I created a model, but when I save data in it, I get the error RecursionError: maximum recursion depth exceeded, and it's pointing to object_json_repr = serializers.serialize("json", [instance]).
When I excluded this model from Django Easy Audit using DJANGO_EASY_AUDIT_UNREGISTERED_CLASSES_EXTRA, saving data in the Conversation model worked fine.
class Conversation(BaseModel):
name = models.CharField(max_length=255, blank=True, null=True)
is_group = models.BooleanField(default=False)
participants = models.ManyToManyField(User, related_name='conversations')
class Meta:
db_table = 'conversation'
The text was updated successfully, but these errors were encountered:
I created a model, but when I save data in it, I get the error RecursionError: maximum recursion depth exceeded, and it's pointing to object_json_repr = serializers.serialize("json", [instance]).
When I excluded this model from Django Easy Audit using DJANGO_EASY_AUDIT_UNREGISTERED_CLASSES_EXTRA, saving data in the Conversation model worked fine.
class Conversation(BaseModel):
name = models.CharField(max_length=255, blank=True, null=True)
is_group = models.BooleanField(default=False)
participants = models.ManyToManyField(User, related_name='conversations')
The text was updated successfully, but these errors were encountered: