diff --git a/RIGS/finance.py b/RIGS/finance.py
index e6423e13..9bb1b0b1 100644
--- a/RIGS/finance.py
+++ b/RIGS/finance.py
@@ -230,6 +230,7 @@ class PaymentCreate(generic.CreateView):
class PaymentDelete(generic.DeleteView):
model = models.Payment
+ template_name = 'payment_confirm_delete.html'
def get_success_url(self):
return self.request.POST.get('next')
diff --git a/RIGS/forms.py b/RIGS/forms.py
index 8913e64e..bb375c14 100644
--- a/RIGS/forms.py
+++ b/RIGS/forms.py
@@ -199,13 +199,13 @@ class EventChecklistForm(forms.ModelForm):
self.items['v' + str(pk)] = item
crewmembers = {key: val for key, val in self.data.items()
- if key.startswith('crewmember')}
- other_fields = ['start','role','end']
+ if key.startswith('crewmember')}
+ other_fields = ['start', 'role', 'end']
for key in crewmembers:
pk = int(key.split('_')[1])
for field in other_fields:
- value = self.data['{}_{}'.format(field,pk)]
+ value = self.data['{}_{}'.format(field, pk)]
if value == '':
raise forms.ValidationError('Add a {} to crewmember {}'.format(field, pk), code='{}_mismatch'.format(field))
diff --git a/RIGS/migrations/0050_auto_20200830_1048.py b/RIGS/migrations/0050_auto_20200830_1048.py
new file mode 100644
index 00000000..8d93bf95
--- /dev/null
+++ b/RIGS/migrations/0050_auto_20200830_1048.py
@@ -0,0 +1,43 @@
+# Generated by Django 3.1 on 2020-08-30 09:48
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+
+ dependencies = [
+ ('RIGS', '0049_auto_20200829_2313'),
+ ]
+
+ operations = [
+ migrations.AlterField(
+ model_name='eventchecklist',
+ name='fd_earth_fault',
+ field=models.IntegerField(help_text='Earth Fault Loop Impedance (ZS)', verbose_name='Earth Fault Loop Impedance'),
+ ),
+ migrations.AlterField(
+ model_name='eventchecklist',
+ name='fd_phase_rotation',
+ field=models.BooleanField(help_text='Phase Rotation
(if required)', verbose_name='Phase Rotation'),
+ ),
+ migrations.AlterField(
+ model_name='eventchecklist',
+ name='fd_pssc',
+ field=models.IntegerField(help_text='Prospective Short Circuit Current', verbose_name='PSCC'),
+ ),
+ migrations.AlterField(
+ model_name='eventchecklist',
+ name='fd_voltage_l1',
+ field=models.IntegerField(help_text='L1 - N', verbose_name='First Distro Voltage L1-N'),
+ ),
+ migrations.AlterField(
+ model_name='eventchecklist',
+ name='fd_voltage_l2',
+ field=models.IntegerField(help_text='L2 - N', verbose_name='First Distro Voltage L2-N'),
+ ),
+ migrations.AlterField(
+ model_name='eventchecklist',
+ name='fd_voltage_l3',
+ field=models.IntegerField(help_text='L3 - N', verbose_name='First Distro Voltage L3-N'),
+ ),
+ ]
diff --git a/RIGS/models.py b/RIGS/models.py
index 6ec83221..5055e1bf 100644
--- a/RIGS/models.py
+++ b/RIGS/models.py
@@ -666,12 +666,12 @@ class EventChecklist(models.Model, RevisionMixin):
source_rcd = models.BooleanField(help_text="Source RCD protected?
(if cable is more than 3m long) ")
labelling = models.BooleanField(help_text="Appropriate and clear labelling on distribution and cabling?")
# First Distro
- fd_voltage_l1 = models.IntegerField(help_text="L1 - N")
- fd_voltage_l2 = models.IntegerField(help_text="L2 - N")
- fd_voltage_l3 = models.IntegerField(help_text="L3 - N")
- fd_phase_rotation = models.BooleanField(help_text="Phase Rotation
(if required)")
- fd_earth_fault = models.IntegerField(help_text="Earth Fault Loop Impedance (ZS)")
- fd_pssc = models.IntegerField(help_text="Prospective Short Circuit Current")
+ fd_voltage_l1 = models.IntegerField(verbose_name="First Distro Voltage L1-N", help_text="L1 - N")
+ fd_voltage_l2 = models.IntegerField(verbose_name="First Distro Voltage L2-N", help_text="L2 - N")
+ fd_voltage_l3 = models.IntegerField(verbose_name="First Distro Voltage L3-N", help_text="L3 - N")
+ fd_phase_rotation = models.BooleanField(verbose_name="Phase Rotation", help_text="Phase Rotation
(if required)")
+ fd_earth_fault = models.IntegerField(verbose_name="Earth Fault Loop Impedance", help_text="Earth Fault Loop Impedance (ZS)")
+ fd_pssc = models.IntegerField(verbose_name="PSCC", help_text="Prospective Short Circuit Current")
all_rcds_tested = models.BooleanField(help_text="All circuit RCDs tested?(using test button)")
public_sockets_tested = models.BooleanField(help_text="Public/Performer accessible circuits tested?(using socket tester)")
diff --git a/RIGS/templates/event_checklist_form.html b/RIGS/templates/event_checklist_form.html
index ef78e0b5..1684bba2 100644
--- a/RIGS/templates/event_checklist_form.html
+++ b/RIGS/templates/event_checklist_form.html
@@ -286,7 +286,7 @@