aboutsummaryrefslogblamecommitdiffstats
path: root/ctrack/organisations/migrations/0002_auto_20200403_1407.py
blob: d9f3aed2e350789492c8ad1a57e766c7fbae3747 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
                                               
 
                                  









                                        
                                                                  
                                          





                                
                                                                                                                                             








                                                                                                                                    
                                                                                                                                                   











                                                                                                                                              
# Generated by Django 2.2.9 on 2020-04-03 14:07

import ctrack.organisations.models
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

    initial = True

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
        ('organisations', '0001_initial'),
    ]

    operations = [
        migrations.AddField(
            model_name='person',
            name='updated_by',
            field=models.ForeignKey(on_delete=models.SET(ctrack.organisations.models.Person.get_sentinel_user), to=settings.AUTH_USER_MODEL),
        ),
        migrations.AddField(
            model_name='organisation',
            name='submode',
            field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='organisations.Submode'),
        ),
        migrations.AddField(
            model_name='organisation',
            name='updated_by',
            field=models.ForeignKey(on_delete=models.SET(ctrack.organisations.models.Organisation.get_sentinel_user), to=settings.AUTH_USER_MODEL),
        ),
        migrations.AddField(
            model_name='address',
            name='organisation',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='addresses', to='organisations.Organisation'),
        ),
        migrations.AddField(
            model_name='address',
            name='type',
            field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='organisations.AddressType', verbose_name='Address Type'),
        ),
    ]