Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
allgo
allgo
Commits
72f60afb
Commit
72f60afb
authored
Dec 05, 2018
by
BAIRE Anthony
Browse files
remove Tos.content
(this is a legal document, we should avoid juggling with multiple variants)
parent
5c12d3c5
Changes
3
Hide whitespace changes
Inline
Side-by-side
django/allgo/main/models.py
View file @
72f60afb
...
...
@@ -621,7 +621,6 @@ class Tos(BaseModel):
doubt.
"""
content
=
models
.
TextField
(
blank
=
True
)
url
=
models
.
URLField
(
blank
=
True
)
version
=
models
.
DecimalField
(
default
=
1.0
,
decimal_places
=
2
,
max_digits
=
6
)
...
...
django/allgo/templates/tos_detail.html
View file @
72f60afb
...
...
@@ -10,8 +10,6 @@
{% block content %}
<div
class=
"container"
>
<div
class=
"allgo-page"
>
{{ tos.content | markdown | safe }}
{% if tos.url %}
<p>
You can read the Terms of Service as a
<a
href=
"{{ tos.url }}"
>
PDF file
</a>
.
</p>
{% endif %}
...
...
django/allgo/templates/tos_validation.html
View file @
72f60afb
...
...
@@ -13,8 +13,6 @@
<form
method=
"post"
>
{% csrf_token %}
{{ tos_data.content | markdown | safe }}
<p>
You can get the Terms of Service in
<a
href=
"{{ tos_data.url }}"
>
PDF format
</a>
.
</p>
<div
class=
"form-group form-check"
>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment