1
# -*- coding: utf-8 -*-
2
from __future__ import unicode_literals
4
from django.shortcuts import render
5
from privacy_policy.models import PrivacyPolicy
8
def privacy_policy(request):
9
"""Creates the text of all policies and prepare them for markdown."""
12
policies = PrivacyPolicy.objects.all()
13
for policy in policies:
14
text = text + '\n#' + policy.language
15
text = text + '\n' + policy.policy_text
16
text = text + '\n\n---------------------------'
17
return render(request, 'privacy_policy.html', {'text': text})