from django.db import migrations, models


class Migration(migrations.Migration):
    """
    The builder credit, shown as the last line of every public page.

    Two fields rather than a literal in the template, because this code is
    also the blank install template and must not carry anyone's name. The
    installer fills them in, so a new tenant has the credit from its first
    request and it can still be corrected in Settings.

    Additive, both blank by default, so nothing existing renders it.
    """

    dependencies = [
        ('pages', '0042_hero_line2_blank'),
    ]

    operations = [
        migrations.AddField(
            model_name='sitesettings',
            name='builder_name',
            field=models.CharField(blank=True, help_text='Credit shown in the sub footer, e.g. Designed and Developed by ...', max_length=100),
        ),
        migrations.AddField(
            model_name='sitesettings',
            name='builder_url',
            field=models.URLField(blank=True, help_text='Where that credit links to. Opens in a new tab.'),
        ),
    ]
