Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin'
Browse files Browse the repository at this point in the history
  • Loading branch information
helgihg committed Jul 5, 2018
2 parents d9f1134 + 7a3b3b1 commit 1a1d9da
Show file tree
Hide file tree
Showing 5 changed files with 150 additions and 119 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.10.11
0.10.12
9 changes: 9 additions & 0 deletions core/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
from django.utils.translation import ugettext as _
from django.utils.encoding import force_bytes
from django.views.decorators.cache import never_cache
from termsandconditions.models import TermsAndConditions

from django.contrib.auth.models import User
from core.models import UserProfile
Expand Down Expand Up @@ -254,7 +255,15 @@ def new_full_name(extension):

@login_required
def personal_data(request):

terms = TermsAndConditions.objects.filter(
userterms__user=request.user
).order_by(
'-userterms__date_accepted'
).first()

ctx = {
'terms': terms,
}
return render(request, 'accounts/personal_data.html', ctx)

Expand Down
Loading

0 comments on commit 1a1d9da

Please sign in to comment.