extend LICENSE_CHOICES

This commit is contained in:
Trent Palmer 2021-03-16 16:23:00 -07:00
parent f83c931d19
commit f1c2858537

View File

@ -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')