Skip to content
New issue

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

for manytomany field audit is not working #324

Open
dhruvinexlitem opened this issue Jan 21, 2025 · 0 comments
Open

for manytomany field audit is not working #324

dhruvinexlitem opened this issue Jan 21, 2025 · 0 comments

Comments

@dhruvinexlitem
Copy link

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'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant