0004_agente.py 854 Bytes
# Generated by Django 3.2.7 on 2021-09-27 15:21

from django.db import migrations, models
import django.db.models.deletion
import uuid


class Migration(migrations.Migration):

    dependencies = [
        ('persona', '0003_alter_persona_organismo'),
    ]

    operations = [
        migrations.CreateModel(
            name='Agente',
            fields=[
                ('persona_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='persona.persona')),
                ('identificador', models.UUIDField(default=uuid.uuid4, editable=False, unique=True)),
            ],
            options={
                'verbose_name': 'Agente',
                'verbose_name_plural': 'Agentes',
            },
            bases=('persona.persona',),
        ),
    ]