"""Constants."""
from django.utils.translation import gettext_lazy as _


CC_BY = 'cc-by'
CC_BY_SHORT = 'CC BY 4.0'
CC_BY_LONG = 'Namensnennung 4.0 International (CC BY 4.0)'

CC_BY_SA = 'cc-by-sa'
CC_BY_SA_SHORT = 'CC BY-SA 4.0'
CC_BY_SA_LONG = 'Namensnennung - Weitergabe unter gleichen Bedingungen 4.0 International (CC BY-SA 4.0)'

LICENCE_CHOICES = (
    (CC_BY, CC_BY_SHORT),
    (CC_BY_SA, CC_BY_SA_SHORT),
)

LICENCE_CHOICES_LONG = (
    (CC_BY, CC_BY_LONG),
    (CC_BY_SA, CC_BY_SA_LONG),
)

LICENCE_NAMES_LONG = {
    CC_BY: CC_BY_LONG,
    CC_BY_SA: CC_BY_LONG,
}

LICENCE_URLS = {
    CC_BY: 'https://creativecommons.org/licenses/by/4.0/deed.de',
    CC_BY_SA: 'https://creativecommons.org/licenses/by-sa/4.0/deed.de',
}

CHANGE_OPTIONS = (
    ('none', _('no changes')),
)

@@ -10,16 +10,52 @@
 nts.%22%22%22%0A
+from collections import namedtuple%0A%0A
 from dja
@@ -107,663 +107,855 @@
 _%0A%0A%0A
-CC_BY = 'cc-by'%0ACC_BY_SHORT = 'CC BY 4.0'%0ACC_BY_LONG = 'Namensnennung 4.0 International (CC BY 4.0)'%0A%0ACC_BY_SA = 'cc-by-sa'%0ACC_BY_SA_SHORT = 'CC BY-SA 4.0'%0ACC_BY_SA_LONG = 'Namensnennung - Weitergabe unter gleichen Bedingungen 4.0 International (CC BY-SA 4.0)'%0A%0ALICENCE_CHOICES = (%0A    (CC_BY, CC_BY_SHORT),%0A    (CC_BY_SA, CC_BY_SA_SHORT),%0A)%0A%0ALICENCE_CHOICES_LONG = (%0A    (CC_BY, CC_BY_LONG),%0A    (CC_BY_SA, CC_BY_SA_LONG),%0A)%0A%0ALICENCE_NAMES_LONG = %7B%0A    CC_BY: CC_BY_LONG,%0A    CC_BY_SA: CC_BY_LONG,%0A%7D%0A%0ALICENCE_URLS = %7B%0A    CC_BY: 'https://creativecommons.org/licenses/by/4.0/deed.de',%0A    CC_BY_SA: 'https://creativecommons.org/licenses/by-sa/4.0/deed.de'
+License = namedtuple('License', %5B'slug', 'title_short', 'title_long', 'url'%5D)%0A%0A%0Acc_by = License(%0A    'cc-by',%0A    'CC BY 4.0',%0A    'Namensnennung 4.0 International (CC BY 4.0)',%0A    'https://creativecommons.org/licenses/by/4.0/deed.de',%0A    )%0A%0Acc_by_sa = License(%0A    'cc-by-sa',%0A    'CC BY-SA 4.0',%0A    'Namensnennung - Weitergabe unter gleichen Bedingungen 4.0 International (CC BY-SA 4.0)',%0A    'https://creativecommons.org/licenses/by-sa/4.0/deed.de',%0A    )%0A%0ALICENCE_CHOICES = (%0A    (cc_by.slug, cc_by.title_short),%0A    (cc_by_sa.slug, cc_by_sa.title_short),%0A)%0A%0ALICENCE_CHOICES_LONG = (%0A    (cc_by.slug, cc_by.title_long),%0A    (cc_by_sa.slug, cc_by_sa.title_long),%0A)%0A%0ALICENCE_NAMES_LONG = %7B%0A    cc_by.slug: cc_by.title_long,%0A    cc_by_sa.slug: cc_by_sa.title_long,%0A%7D%0A%0ALICENCE_URLS = %7B%0A    cc_by.slug: cc_by.url,%0A    cc_by_sa.slug: cc_by_sa.url
 ,%0A%7D%0A

Simplify (?) license definitions