Do not use ip_address on instances anymore.

This commit is contained in:
Luke Sneeringer
2014-12-02 13:17:31 -06:00
parent f99a73fb85
commit 9dfa26fa58
2 changed files with 2 additions and 2 deletions

View File

@@ -98,4 +98,4 @@ class HAMiddleware(object):
})
# Redirect to the base page of the primary instance.
return HttpResponseRedirect('http://%s/' % primary.ip_address)
return HttpResponseRedirect('http://%s/' % primary.hostname)