Fixed unicode issue (again!).

This commit is contained in:
A. Svensson 2015-05-19 21:37:03 +02:00
parent 87aa9fdfee
commit b1278a215b

View File

@ -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