From f1c28585376eea05e9512cb990d755d55ee9e192 Mon Sep 17 00:00:00 2001 From: Trent Palmer Date: Tue, 16 Mar 2021 16:23:00 -0700 Subject: [PATCH] extend LICENSE_CHOICES --- audio/choices.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/audio/choices.py b/audio/choices.py index 91bd1ac..b40b8f4 100644 --- a/audio/choices.py +++ b/audio/choices.py @@ -3,7 +3,8 @@ LICENSE_CHOICES = [ (2, 'Unknown'), (3, 'CC BY-SA 2.5'), (4, 'CC BY-SA 3.0'), - (5, 'CC BY 3.0') + (5, 'CC BY 3.0'), + (6, 'CC BY 1.0') ] @@ -18,3 +19,5 @@ def get_image_license_info(x): return ('CC BY-SA 3.0', 'https://creativecommons.org/licenses/by-sa/3.0') if x == 5: return ('CC BY 3.0', 'https://creativecommons.org/licenses/by/3.0') + if x == 6: + return ('CC BY 1.0', 'https://creativecommons.org/licenses/by/1.0')