Fixed unicode issue (again!).
This commit is contained in:
parent
87aa9fdfee
commit
b1278a215b
@ -15,6 +15,6 @@ class ServerDetailView(generic.DetailView):
|
||||
def get_context_data(self, **kwargs):
|
||||
context = super(ServerDetailView, self).get_context_data(**kwargs)
|
||||
server = context['server']
|
||||
context['graph_file'] = hashlib.sha256(server.title).hexdigest()
|
||||
context['graph_file'] = hashlib.sha256(str(server)).hexdigest()
|
||||
return context
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user