Skip to content

Commit

Permalink
Fix issue jedie#10 - don't throw when field is missing from stored data
Browse files Browse the repository at this point in the history
  • Loading branch information
odinho committed Oct 19, 2013
1 parent 4777d17 commit 66b7e50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reversion_compare/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def __init__(self, field, field_name, obj, version, has_int_pk, adapter):
self.has_int_pk = has_int_pk
self.adapter = adapter

self.value = version.field_dict[field_name]
self.value = version.field_dict.get(field_name, '')

def _obj_repr(self, obj):
# FIXME: How to create a better representation of the current value?
Expand Down

0 comments on commit 66b7e50

Please sign in to comment.