class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('disturbance', '0042_merge_20200513_1644'), ] operations = [ migrations.AddField( model_name='apiarysitefeeremainder', name='proxy_applicant', field=models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL), ), migrations.AlterField( model_name='apiarysitefeeremainder', name='applicant', field=models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='disturbance.Organisation'), ), migrations.AlterField( model_name='compliancedocument', name='_file', field=models.FileField( max_length=500, upload_to=disturbance.components.compliances.models. update_proposal_complaince_filename), ), ]
class Migration(migrations.Migration): dependencies = [ ('disturbance', '0034_auto_20200512_1550'), ] operations = [ migrations.CreateModel( name='ApiarySiteFeeType', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=50)), ], ), migrations.AlterField( model_name='compliancedocument', name='_file', field=models.FileField(max_length=500, upload_to=disturbance.components.compliances.models.update_proposal_complaince_filename), ), migrations.AddField( model_name='apiarysitefee', name='apiary_site_fee_type', field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='disturbance.ApiarySiteFeeType'), ), ]
class Migration(migrations.Migration): dependencies = [ ('disturbance', '0027_auto_20200505_1156'), ] operations = [ migrations.CreateModel( name='OnSiteInformation', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('period_from', models.DateField(blank=True, null=True)), ('period_to', models.DateField(blank=True, null=True)), ('comments', models.TextField(blank=True)), ('apiary_site', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='disturbance.ApiarySite')), ], ), migrations.AlterField( model_name='compliancedocument', name='_file', field=models.FileField( max_length=500, upload_to=disturbance.components.compliances.models. update_proposal_complaince_filename), ), ]
class Migration(migrations.Migration): dependencies = [ ('disturbance', '0030_auto_20200511_1512'), ] operations = [ migrations.AddField( model_name='apiarysite', name='site_category', field=models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='disturbance.SiteCategory'), ), migrations.AlterField( model_name='compliancedocument', name='_file', field=models.FileField( max_length=500, upload_to=disturbance.components.compliances.models. update_proposal_complaince_filename), ), ]
class Migration(migrations.Migration): dependencies = [ ('disturbance', '0003_compliance_post_reminder_sent'), ] operations = [ migrations.AddField( model_name='approvaldocument', name='can_delete', field=models.BooleanField(default=True), ), migrations.AddField( model_name='compliancedocument', name='can_delete', field=models.BooleanField(default=True), ), migrations.AddField( model_name='proposaldocument', name='can_delete', field=models.BooleanField(default=True), ), migrations.AlterField( model_name='approval', name='current_proposal', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='approvals', to='disturbance.Proposal'), ), migrations.AlterField( model_name='compliancedocument', name='_file', field=models.FileField(upload_to=disturbance.components.compliances.models.update_proposal_complaince_filename), ), ]
class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('disturbance', '0038_auto_20200513_1049'), ] operations = [ migrations.CreateModel( name='ApiarySiteFeeRemainder', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('number_of_sites_left', models.SmallIntegerField(default=0)), ('datetime_created', models.DateTimeField(auto_now_add=True)), ('datetime_expired', models.DateTimeField(blank=True, null=True)), ('apiary_site_fee_type', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='disturbance.ApiarySiteFeeType')), ('applicant', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ('site_category', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='disturbance.SiteCategory')), ], ), migrations.AlterField( model_name='compliancedocument', name='_file', field=models.FileField( max_length=500, upload_to=disturbance.components.compliances.models. update_proposal_complaince_filename), ), ]
class Migration(migrations.Migration): dependencies = [ ('disturbance', '0010_organisationrequestlogdocument'), ] operations = [ migrations.CreateModel( name='ComplianceDocument', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(blank=True, max_length=100, verbose_name='name')), ('description', models.TextField(blank=True, verbose_name='description')), ('uploaded_date', models.DateTimeField(auto_now_add=True)), ('_file', models.FileField(upload_to=disturbance.components.compliances. models.update_proposal_complaince_filename)), ], ), migrations.AddField( model_name='compliance', name='customer_status', field=models.CharField(choices=[('due', 'Due'), ('future', 'Future'), ('with_assessor', 'Under Review'), ('approved', 'Approved')], default='future', max_length=20), ), migrations.AddField( model_name='compliance', name='text', field=models.TextField(blank=True), ), migrations.AddField( model_name='compliancedocument', name='compliance', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, related_name='documents', to='disturbance.Compliance'), ), ]
class Migration(migrations.Migration): dependencies = [ ('disturbance', '0031_auto_20200512_1155'), ] operations = [ migrations.CreateModel( name='ApiarySiteFee', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('fee_type', models.CharField(choices=[('new_application', 'New Application'), ('amendment', 'Amendment'), ('renewal', 'Renewal'), ('transfer', 'Transfer')], default='new_application', max_length=40)), ('amount', models.DecimalField(decimal_places=2, default='0.00', max_digits=8)), ('date_of_enforcement', models.DateField(blank=True, null=True)), ('site_category', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='site_fees', to='disturbance.SiteCategory')), ], options={ 'ordering': ('date_of_enforcement', ), }, ), migrations.AlterField( model_name='compliancedocument', name='_file', field=models.FileField( max_length=500, upload_to=disturbance.components.compliances.models. update_proposal_complaince_filename), ), migrations.AlterUniqueTogether( name='apiarysitefee', unique_together=set([('fee_type', 'site_category')]), ), ]
class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('disturbance', '0020_auto_20200426_1611'), ] operations = [ migrations.CreateModel( name='ApplicationFee', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('send_invoice', models.BooleanField(default=False)), ('confirmation_sent', models.BooleanField(default=False)), ('created', models.DateTimeField(auto_now_add=True)), ('expiry_time', models.DateTimeField(auto_now_add=True, null=True)), ('payment_type', models.SmallIntegerField(choices=[(0, 'Internet booking'), (1, 'Reception booking'), (2, 'Black booking'), (3, 'Temporary reservation')], default=0)), ('cost', models.DecimalField(decimal_places=2, default='0.00', max_digits=8)), ('created_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, related_name='created_by_application_fee', to=settings.AUTH_USER_MODEL)), ('proposal', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, related_name='application_fees', to='disturbance.Proposal')), ], ), migrations.CreateModel( name='ApplicationFeeInvoice', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('invoice_reference', models.CharField(blank=True, default='', max_length=50, null=True)), ('application_fee', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='application_fee_invoices', to='disturbance.ApplicationFee')), ], ), migrations.AlterField( model_name='compliancedocument', name='_file', field=models.FileField(max_length=500, upload_to=disturbance.components.compliances.models.update_proposal_complaince_filename), ), ]
class Migration(migrations.Migration): dependencies = [ ('disturbance', '0023_auto_20200427_1833'), ] operations = [ migrations.CreateModel( name='ApiarySite', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('site_guid', models.CharField(blank=True, max_length=30)), ('proposal_apiary_site_location', models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='disturbance.ProposalApiarySiteLocation')), ], ), migrations.AlterField( model_name='compliancedocument', name='_file', field=models.FileField( max_length=500, upload_to=disturbance.components.compliances.models. update_proposal_complaince_filename), ), migrations.AlterField( model_name='proposaltype', name='name', field=models.CharField( choices=[('Disturbance', 'Disturbance'), ('Powerline Maintenance', 'Powerline Maintenance'), ('Apiary', 'Apiary')], default='Disturbance', max_length=64, verbose_name='Application name (eg. Disturbance, Apiary)'), ), ]
class Migration(migrations.Migration): dependencies = [ ('disturbance', '0016_compliancelogentry_complianceuseraction'), ] operations = [ migrations.CreateModel( name='ComplianceLogDocument', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(blank=True, max_length=100, verbose_name='name')), ('description', models.TextField(blank=True, verbose_name='description')), ('uploaded_date', models.DateTimeField(auto_now_add=True)), ('_file', models.FileField(upload_to=disturbance.components.compliances.models.update_compliance_comms_log_filename)), ('log_entry', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='documents', to='disturbance.ComplianceLogEntry')), ], ), ]
class Migration(migrations.Migration): dependencies = [ ('disturbance', '0024_auto_20200504_1005'), ] operations = [ migrations.AlterField( model_name='apiarysite', name='proposal_apiary_site_location', field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='apiary_sites', to='disturbance.ProposalApiarySiteLocation'), ), migrations.AlterField( model_name='apiarysite', name='site_guid', field=models.CharField(blank=True, max_length=50), ), migrations.AlterField( model_name='compliancedocument', name='_file', field=models.FileField(max_length=500, upload_to=disturbance.components.compliances.models.update_proposal_complaince_filename), ), ]
class Migration(migrations.Migration): dependencies = [ ('disturbance', '0029_auto_20200508_1238'), ] operations = [ migrations.CreateModel( name='SiteApplicationFee', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('amount', models.DecimalField(decimal_places=2, default='0.00', max_digits=8)), ('date_of_enforcement', models.DateField(blank=True, null=True)), ], options={ 'ordering': ('date_of_enforcement',), }, ), migrations.CreateModel( name='SiteCategory', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(blank=True, max_length=200)), ], ), migrations.AlterField( model_name='compliancedocument', name='_file', field=models.FileField(max_length=500, upload_to=disturbance.components.compliances.models.update_proposal_complaince_filename), ), migrations.AddField( model_name='siteapplicationfee', name='site_category', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='site_application_fees', to='disturbance.SiteCategory'), ), ]
class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('disturbance', '0029_auto_20200508_1238'), ] operations = [ migrations.CreateModel( name='ApiaryReferralGroup', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=255)), ('default', models.BooleanField(default=False)), ('members', models.ManyToManyField(to=settings.AUTH_USER_MODEL)), ('region', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='disturbance.Region')), ], ), migrations.AlterField( model_name='compliancedocument', name='_file', field=models.FileField(max_length=500, upload_to=disturbance.components.compliances.models.update_proposal_complaince_filename), ), ]
class Migration(migrations.Migration): dependencies = [ ('disturbance', '0017_auto_20191030_1200'), ] operations = [ migrations.CreateModel( name='ProposalApiaryDocument', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(blank=True, max_length=255, verbose_name='name')), ('description', models.TextField(blank=True, verbose_name='description')), ('uploaded_date', models.DateTimeField(auto_now_add=True)), ('input_name', models.CharField(blank=True, max_length=255, null=True)), ('can_delete', models.BooleanField(default=True)), ('visible', models.BooleanField(default=True)), ('_file', models.FileField(max_length=512, upload_to=disturbance.components.proposals. models.update_apiary_doc_filename)), ('proposal', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='apiary_documents', to='disturbance.Proposal')), ], options={ 'abstract': False, }, ), migrations.CreateModel( name='ProposalApiarySiteLocation', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=200, null=True, verbose_name='Title')), ('proposal', models.OneToOneField( null=True, on_delete=django.db.models.deletion.CASCADE, related_name='apiary_site_location', to='disturbance.Proposal')), ], ), migrations.CreateModel( name='ProposalApiarySiteTransfer', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('email', models.EmailField(blank=True, max_length=254, null=True, verbose_name='Email of Transferee')), ('proposal', models.OneToOneField( null=True, on_delete=django.db.models.deletion.CASCADE, related_name='apiary_site_transfer', to='disturbance.Proposal')), ], ), migrations.CreateModel( name='ProposalApiaryTemporaryUse', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('from_date', models.DateField(blank=True, null=True, verbose_name='Period From Date')), ('to_date', models.DateField(blank=True, null=True, verbose_name='Period To Date')), ('proposal', models.OneToOneField( null=True, on_delete=django.db.models.deletion.CASCADE, related_name='apiary_temporary_use', to='disturbance.Proposal')), ], ), migrations.AlterField( model_name='compliancedocument', name='_file', field=models.FileField( max_length=500, upload_to=disturbance.components.compliances.models. update_proposal_complaince_filename), ), migrations.AlterField( model_name='proposaltype', name='name', field=models.CharField( choices=[('Disturbance', 'Disturbance'), ('Powerline Maintenance', 'Powerline Maintenance'), ('Apiary', 'Apiary')], default='Disturbance', max_length=64, verbose_name='Application name (eg. Disturbance, Apiary)'), ), ]