Update for use with github codespaces

This commit is contained in:
2022-12-16 12:35:52 +00:00
parent 2b8945c513
commit 7b7c1b86de
7 changed files with 273 additions and 253 deletions

View File

@@ -1,4 +1,4 @@
# Generated by Django 3.2.12 on 2022-10-15 19:36
# Generated by Django 3.2.16 on 2022-12-16 12:10
from django.db import migrations, models
import django.db.models.deletion
@@ -8,7 +8,7 @@ import versioning.versioning
class Migration(migrations.Migration):
dependencies = [
('RIGS', '0044_profile_is_supervisor'),
('RIGS', '0045_alter_profile_is_approved'),
]
operations = [
@@ -25,6 +25,7 @@ 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)),
('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')),
],

View File

@@ -1,18 +0,0 @@
# Generated by Django 3.2.16 on 2022-10-20 11:56
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('RIGS', '0045_subhire'),
]
operations = [
migrations.AddField(
model_name='subhire',
name='events',
field=models.ManyToManyField(to='RIGS.Event'),
),
]

View File

@@ -539,7 +539,7 @@ class Event(BaseEvent):
return reverse('event_update', kwargs={'pk': self.pk})
def clean(self):
errdict = super.clean()
errdict = super().clean()
if self.access_at is not None:
if self.access_at.date() > self.start_date: