Skip to content
This repository has been archived by the owner on Sep 29, 2022. It is now read-only.

Commit

Permalink
DB: Company.is_active default True
Browse files Browse the repository at this point in the history
  • Loading branch information
PabloCastellano committed Jan 7, 2017
1 parent 7ba185d commit 5cfc0eb
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
20 changes: 20 additions & 0 deletions borme/migrations/0002_company_is_active_default_true.py
Original file line number Diff line number Diff line change
@@ -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),
),
]
2 changes: 1 addition & 1 deletion borme/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 5cfc0eb

Please sign in to comment.