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
One issue we came across with auditlog is that we're registering all fields including reverse-related fields. Which means that:
instance._state.fields_cache
I will open a PR to soon to show a possible fix for the issue.
The text was updated successfully, but these errors were encountered:
@hramezani
Sorry I didn't get around to the pr. The issue is that when we're calling .get_fields() in diff.py, we're getting the auto created fields.
.get_fields()
Maybe we can exclude them when we're registering the models.
for field in meta.get_fields(): if isinstance(field, ManyToManyField): m2m_fields.append(field.name) elif field.auto_created and isinstance(field, ForeignObjectRel): exclude_fields.append(field.name)
Sorry, something went wrong.
@aqeelat can we have a config flag for this? Something like exclude_reverse_relation. The default value can be False to don't change the old behavior.
exclude_reverse_relation
False
When branches are created from issues, their pull requests are automatically linked.
One issue we came across with auditlog is that we're registering all fields including reverse-related fields. Which means that:
instance._state.fields_cache
as a side effect, which is not a documented behavior.I will open a PR to soon to show a possible fix for the issue.
The text was updated successfully, but these errors were encountered: