-
Notifications
You must be signed in to change notification settings - Fork 5
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
Add ability to ignore certain fields #5
Comments
Or you could even ditch GNU diff and compare dumps by parsing their json and looking up differences between models with |
I think that would work, otherwise maybe we could drop fields with sed after dumping the data depending on a new "exclude" param for Fixture ? Not opinionated, just wondering |
That's a solution, but then you're coupling your module with the text output format from dumpdata. We know it's valid JSON, but we never know, they may change the actual indented format (spaces, line breaks...) and that would break dbdiff if you rely on the actual text output. |
This has been implemented: https://github.com/yourlabs/django-dbdiff/blob/master/dbdiff/test.py#L23 |
That does not seem feasible easily currently, maybe you'd have to parse dumped json and remove ignored fields manually from them before running the diff.
The text was updated successfully, but these errors were encountered: