This commit is contained in:
Tim Lorsbach
2025-11-11 19:59:03 +01:00
parent 91a52c254d
commit ab43e0b5fe

View File

@ -93,6 +93,7 @@ class Command(BaseCommand):
"""Create the six default licenses supported by enviPath"""
cc_strings = ["by", "by-nc", "by-nc-nd", "by-nc-sa", "by-nd", "by-sa"]
for cc_string in cc_strings:
if not License.objects.filter(cc_string=cc_string).exists():
new_license = License()
new_license.cc_string = cc_string
new_license.link = f"https://creativecommons.org/licenses/{cc_string}/4.0/"