This commit is contained in:
Oliver Falk
2018-11-16 15:32:17 +01:00
2 changed files with 3 additions and 4 deletions

View File

@@ -132,3 +132,5 @@ if os.path.isfile(os.path.join(BASE_DIR, 'config_local.py')):
from config_local import * # noqa # flake8: noqa # NOQA # pragma: no cover from config_local import * # noqa # flake8: noqa # NOQA # pragma: no cover
SESSION_SERIALIZER = 'django.contrib.sessions.serializers.PickleSerializer' SESSION_SERIALIZER = 'django.contrib.sessions.serializers.PickleSerializer'
USE_X_FORWARDED_HOST = True

View File

@@ -29,10 +29,7 @@
<p> <p>
<button type="submit" class="btn btn-default">{% trans 'Login' %}</button> <button type="submit" class="btn btn-default">{% trans 'Login' %}</button>
<input type="hidden" name="next" id="next"/> <input type="hidden" name="next" value="{{ next }}" />
<script>
document.getElementById("next").value = window.location.protocol + '//' + window.location.hostname + "{% url 'profile' %}";
</script>
&nbsp; &nbsp;
<button type="reset" class="btn btn-default" onclick="window.history.back();">{% trans 'Cancel' %}</button> <button type="reset" class="btn btn-default" onclick="window.history.back();">{% trans 'Cancel' %}</button>