Skip to content

Commit

Permalink
fixes #57 when using google-diff
Browse files Browse the repository at this point in the history
  • Loading branch information
LegoStormtroopr committed Feb 1, 2016
1 parent cf69a69 commit 0a9b465
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
8 changes: 8 additions & 0 deletions reversion_compare/mixins.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,4 +221,12 @@ def compare_DateTimeField(self, obj_compare):
"date2": obj_compare.value2,
}
return render_to_string("reversion-compare/compare_DateTimeField.html", context)

def compare_BooleanField(self, obj_compare):
''' compare booleans as a complete field, rather than as a string '''
context = {
"bool1": obj_compare.value1,
"bool2": obj_compare.value2,
}
return render_to_string("reversion-compare/compare_BooleanField.html", context)

Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{% load i18n %}

<pre class="highlight">
<del>- {{ bool1 }}</del>
<ins>+ {{ bool2 }}</ins>
</pre>

0 comments on commit 0a9b465

Please sign in to comment.