Skip to content

Commit

Permalink
Fixes #385: Corrected Unicode rendering of UserAction
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremystretch committed Jul 26, 2016
1 parent bd6e68f commit e5b19a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions netbox/extras/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,8 @@ class Meta:

def __unicode__(self):
if self.message:
return ' '.join([self.user, self.message])
return ' '.join([self.user, self.get_action_display(), self.content_type])
return u'{} {}'.format(self.user, self.message)
return u'{} {} {}'.format(self.user, self.get_action_display(), self.content_type)

def icon(self):
if self.action in [ACTION_CREATE, ACTION_IMPORT]:
Expand Down

0 comments on commit e5b19a9

Please sign in to comment.