mirror of
https://github.com/Hopiu/django-tos.git
synced 2026-03-16 20:10:24 +00:00
get_user_model fix
This commit is contained in:
parent
e40fedf279
commit
62bf78b8a5
1 changed files with 1 additions and 1 deletions
|
|
@ -58,7 +58,7 @@ def check_tos(request, template_name='tos/tos_check.html',
|
|||
tos = TermsOfService.objects.get_current_tos()
|
||||
if request.method == "POST":
|
||||
if request.POST.get("accept", "") == "accept":
|
||||
user = get_user_model().objects.get(pk=request.session['tos_user'])
|
||||
user = USER_MODEL.objects.get(pk=request.session['tos_user'])
|
||||
user.backend = request.session['tos_backend']
|
||||
|
||||
# Save the user agreement to the new TOS
|
||||
|
|
|
|||
Loading…
Reference in a new issue