from django.db import migrations, models

import two_factor.models


class Migration(migrations.Migration):

    dependencies = [
        ('two_factor', '0005_auto_20160224_0450'),
    ]

    operations = [
        migrations.AlterField(
            model_name='phonedevice',
            name='key',
            field=models.CharField(default=two_factor.models.random_hex_str, help_text='Hex-encoded secret key', max_length=40, validators=[two_factor.models.key_validator]),
        ),
    ]

Add migration for byte string fix
Add migration for byte string fix

Changing the `PhoneDevice.key` default requires a model state migration.

See: 268c0d6 (Merge pull request #281 from Ameriks/byte_string_fix)
