Skip to content

Commit

Permalink
- Fix Upload Session encoding issues
Browse files Browse the repository at this point in the history
  • Loading branch information
afabiani committed Oct 18, 2018
1 parent 681c2e7 commit f5665e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions geonode/layers/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,9 +350,9 @@ def successful(self):

def __unicode__(self):
try:
_s = '%s' % self.resource or self.date
_s = '[Upload session-id: {}] - {}'.format(self.id, self.resource.title)
except BaseException:
_s = '%s' % self.date
_s = '[Upload session-id: {}]'.format(self.id)
return u"{0}".format(_s)


Expand Down

0 comments on commit f5665e6

Please sign in to comment.