Add URLField for linking to uploaded quotes

This commit is contained in:
2022-12-16 14:48:54 +00:00
parent 8393e85b74
commit 63a2f6d47b
9 changed files with 28 additions and 35 deletions

View File

@@ -1,5 +1,6 @@
# Generated by Django 3.2.16 on 2022-12-16 12:10
# Generated by Django 3.2.16 on 2022-12-16 14:41
import RIGS.validators
from django.db import migrations, models
import django.db.models.deletion
import versioning.versioning
@@ -25,12 +26,13 @@ class Migration(migrations.Migration):
('end_time', models.TimeField(blank=True, null=True)),
('purchase_order', models.CharField(blank=True, default='', max_length=255, verbose_name='PO')),
('insurance_value', models.DecimalField(decimal_places=2, max_digits=10)),
('quote', models.URLField(default='', validators=[RIGS.validators.validate_url])),
('events', models.ManyToManyField(to='RIGS.Event')),
('organisation', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='RIGS.organisation')),
('person', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='RIGS.person')),
],
options={
'abstract': False,
'permissions': [('subhire_finance', 'Can see financial data for subhire - insurance values')],
},
bases=(models.Model, versioning.versioning.RevisionMixin),
),

View File

@@ -1,17 +0,0 @@
# Generated by Django 3.2.16 on 2022-12-16 14:22
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('RIGS', '0046_subhire'),
]
operations = [
migrations.AlterModelOptions(
name='subhire',
options={'permissions': [('subhire_finance', 'Can see financial data for subhire - insurance values')]},
),
]