Skip to content

for manytomany field audit is not working #324

@dhruvinexlitem

Description

@dhruvinexlitem

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions