-
Notifications
You must be signed in to change notification settings - Fork 104
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
ForeignKey relation #67
Comments
@DiogoMarques29 have same issue here Not sure, how better to compare fields, seems like comparing values is not good enough? |
Any idea to fix this? Pull requests are welcome ;) |
Hello, I fixed this by changing https://github.com/jedie/django-reversion-compare/blob/master/reversion_compare/compare.py#L46 to: And removing this if statement: https://github.com/jedie/django-reversion-compare/blob/master/reversion_compare/compare.py#L92 Frankly, I can't get why in case of the ForeignKey the whole object should be compared. |
@alaruss can you contribute a pull request with tests?!? |
Hi,
I was trying out your app and noticed something weird. Why is a normal ForeignKey (that we are not registering in reversion) showing up on the diff panel? Even if it's empty it always shows 'add: None'. That does not make any sense since this class has the information about that ForeignKey (throw a relational ID). Then I started watching the code and, if I saw correctly, these fields are treated as reversed relations, which they are not.
The text was updated successfully, but these errors were encountered: