Skip to content

Commit

Permalink
Add a WAFER_VIDEO_LICENSE_URL setting
Browse files Browse the repository at this point in the history
Linking to the full body of the license that videos will be released
under.
  • Loading branch information
stefanor committed Oct 13, 2018
1 parent 83cc557 commit de68879
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
3 changes: 3 additions & 0 deletions docs/settings.rst
Expand Up @@ -125,6 +125,9 @@ Wafer's settings
released under. Talk submitters will be asked to release their video
under this license.

``WAFER_VIDEO_LICENSE_URL``
Link to the full text of ``WAFER_VIDEO_LICENSE``.

Third party settings
====================

Expand Down
3 changes: 2 additions & 1 deletion wafer/settings.py
Expand Up @@ -278,7 +278,8 @@
# Ask speakers for video release, and an email address of a reviewer
WAFER_VIDEO = True
WAFER_VIDEO_REVIEWER = True
WAFER_VIDEO_LICENSE = 'CC-BY-SA'
WAFER_VIDEO_LICENSE = 'CC BY-SA 4.0'
WAFER_VIDEO_LICENSE_URL = 'https://creativecommons.org/licenses/by-sa/4.0/'

# Range of scores for talk reviews (inclusive)
WAFER_TALK_REVIEW_SCORES = (-2, 2)
Expand Down
5 changes: 3 additions & 2 deletions wafer/talks/models.py
Expand Up @@ -159,8 +159,9 @@ class Meta:
default=True,
help_text=_(
"By checking this, you are giving permission for the talk to be "
"videoed, and distributed by the conference, under the %s license."
) % settings.WAFER_VIDEO_LICENSE)
"videoed, and distributed by the conference, under the "
'<a href="%s">%s license</a>.'
) % (settings.WAFER_VIDEO_LICENSE_URL, settings.WAFER_VIDEO_LICENSE))
video_reviewer = models.EmailField(
null=True, blank=True,
help_text=_(
Expand Down

0 comments on commit de68879

Please sign in to comment.