@@ -0,0 +1,2073 @@
+# This file is part of authapi.%0A# Copyright (C) 2014-2016  Agora Voting SL %3Cagora@agoravoting.com%3E%0A%0A# authapi is free software: you can redistribute it and/or modify%0A# it under the terms of the GNU Affero General Public License as published by%0A# the Free Software Foundation, either version 3 of the License.%0A%0A# authapi  is distributed in the hope that it will be useful,%0A# but WITHOUT ANY WARRANTY; without even the implied warranty of%0A# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the%0A# GNU Affero General Public License for more details.%0A%0A# You should have received a copy of the GNU Affero General Public License%0A# along with authapi.  If not, see %3Chttp://www.gnu.org/licenses/%3E.%0A%0Afrom __future__ import unicode_literals%0A%0Aimport django.core.validators%0Afrom django.db import migrations, models%0Aimport django.db.models.deletion%0Aimport jsonfield.fields%0A%0A%0Aclass Migration(migrations.Migration):%0A%0A    dependencies = %5B%0A        ('api', '0026_use_core_jsonfield'),%0A    %5D%0A%0A    operations = %5B%0A        migrations.CreateModel(%0A            name='SuccessfulLogin',%0A            fields=%5B%0A                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),%0A                ('created', models.DateTimeField(auto_now_add=True)),%0A                ('is_active', models.BooleanField(default=True)),%0A            %5D,%0A        ),%0A        migrations.AddField(%0A            model_name='authevent',%0A            name='num_successful_logins_allowed',%0A            field=models.IntegerField(default=True, validators=%5Bdjango.core.validators.MinValueValidator(0)%5D),%0A        ),%0A        migrations.AlterField(%0A            model_name='userdata',%0A            name='metadata',%0A            field=jsonfield.fields.JSONField(blank=True, db_index=True, default='%7B%7D', max_length=4096, null=True),%0A        ),%0A        migrations.AddField(%0A            model_name='successfullogin',%0A            name='user',%0A            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='successful_logins', to='api.UserData'),%0A        ),%0A    %5D%0A

add api migration