Skip to content

Commit

Permalink
Removed dictionary comprehension for py26 support (woo!)
Browse files Browse the repository at this point in the history
  • Loading branch information
macro1 committed Apr 22, 2015
1 parent a013f7f commit cd46edd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions simple_history/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,8 @@ def revert_url(self):
[getattr(self, opts.pk.attname), self.history_id])

def get_instance(self):
return model(**{field.attname: getattr(self, field.attname)
for field in fields.values()})
return model(**dict([(field.attname, getattr(self, field.attname))
for field in fields.values()]))

return {
'history_id': models.AutoField(primary_key=True),
Expand Down

0 comments on commit cd46edd

Please sign in to comment.