Browse Source

DIV-531

pull/160/head
Justin Johnson 8 years ago
parent
commit
9fa1fa5365
3 changed files with 6 additions and 4 deletions
  1. +1
    -1
      edivorce/apps/core/templates/base.html
  2. +2
    -1
      edivorce/apps/core/templates/dashboard/current.html
  3. +3
    -2
      edivorce/apps/core/views/system.py

+ 1
- 1
edivorce/apps/core/templates/base.html View File

@ -151,7 +151,7 @@
</li>
{% if show_debug %}
<li>
<em><a href="/current">Debug Current User</a></em>
<em><a href="{% url 'current' %}">Debug Current User</a></em>
</li>
{% endif %}
</ul>


+ 2
- 1
edivorce/apps/core/templates/dashboard/current.html View File

@ -8,8 +8,9 @@
table.outer { width: 100%; }
table.outer td { width: 50%; vertical-align: top; }
td input { padding: 7px 10px; margin-bottom: 2px; }
table.inner { width: 90%; }
table.inner { width: 95%; table-layout: fixed; }
table.inner td { vertical-align: top; }
table.inner td + td { padding-left: 1em; }
</style>
<h2>


+ 3
- 2
edivorce/apps/core/views/system.py View File

@ -1,6 +1,7 @@
from django.conf import settings
from django.http import HttpResponse, Http404
from django.shortcuts import render, redirect
from django.core.urlresolvers import reverse
from edivorce.apps.core.models import Question
@ -28,13 +29,13 @@ def current(request):
request.user.responses.all().delete()
request.user.delete()
request.session.flush()
return redirect('/current')
return redirect(reverse('current'))
if request.GET.get('intercept', False) and request.user.is_authenticated():
request.user.has_seen_orders_page = False
request.user.save()
request.user.responses.filter(question__key='want_which_orders').delete()
return redirect('/current')
return redirect(reverse('current'))
context = {
'hide_nav': True,


Loading…
Cancel
Save