diff --git a/borme/migrations/0002_company_is_active_default_true.py b/borme/migrations/0002_company_is_active_default_true.py new file mode 100644 index 0000000..70b2d81 --- /dev/null +++ b/borme/migrations/0002_company_is_active_default_true.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- +# Generated by Django 1.9.8 on 2017-01-07 16:30 +from __future__ import unicode_literals + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('borme', '0001_initial'), + ] + + operations = [ + migrations.AlterField( + model_name='company', + name='is_active', + field=models.BooleanField(default=True), + ), + ] diff --git a/borme/models.py b/borme/models.py index 8022dc9..d485364 100644 --- a/borme/models.py +++ b/borme/models.py @@ -112,7 +112,7 @@ class Company(Model): nif = CharField(max_length=10) slug = CharField(max_length=260, primary_key=True) date_creation = DateField(blank=True, null=True) - is_active = BooleanField(default=False) + is_active = BooleanField(default=True) type = CharField(max_length=50, choices=SOCIEDADES) date_updated = DateField(db_index=True)