26 lines
768 B
Python
26 lines
768 B
Python
import django.db.models.deletion
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
('cuser', '0005_customuser_rfc_fk_to_m2m'),
|
|
('organization', '0003_organizacion_apply_auto_download'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.AddField(
|
|
model_name='customuser',
|
|
name='active_organization',
|
|
field=models.ForeignKey(
|
|
blank=True,
|
|
help_text='Solo superusuarios: organización activa para contexto de trabajo',
|
|
null=True,
|
|
on_delete=django.db.models.deletion.SET_NULL,
|
|
related_name='superusers_activos',
|
|
to='organization.organizacion',
|
|
),
|
|
),
|
|
]
|