Fix units on 2.2.2 (#48)

This commit is contained in:
Anna Sidwell 2018-03-29 21:48:57 +11:00
parent 9d5daf4e13
commit 83ae33ca9c

View File

@ -593,28 +593,33 @@ class CaseStudy(models.Model):
) )
# 2.2.2 # 2.2.2
energy_storage_capacity = models.IntegerField( energy_storage_capacity = models.DecimalField(
verbose_name=_("Energy storage capacity"), verbose_name=_("Energy storage capacity"),
help_text=_("Enter the total capacity of the energy storage system."), help_text=_("Enter the total capacity of the energy storage system in kilowatt-hours (kWh)."),
max_digits=20,
decimal_places=3,
default=None, default=None,
null=True, null=True,
blank=True blank=True
) )
# 2.2.2.1 # 2.2.2.1
maximum_power_output = models.BigIntegerField( maximum_power_output = models.DecimalField(
verbose_name=_('Maximum power output'), verbose_name=_('Maximum power output'),
help_text=_('Enter the maximum power output of the storage system in Watts (W). (W=J/s)'), help_text=_('Enter the maximum power output of the storage system in kilowatts (kW).'),
max_digits=12,
decimal_places=3,
default=None, default=None,
null=True, null=True,
blank=True blank=True
) )
# 2.2.2.2 # 2.2.2.2
discharge_time = models.BigIntegerField( discharge_time = models.DecimalField(
verbose_name=_('Time for discharge from full capacity'), verbose_name=_('Time for discharge from full capacity'),
help_text=_('Enter the time it takes to discharge from full capacity at maximum power output (in seconds) \ help_text=_('Enter the time it takes to discharge from full capacity at maximum power output (in hours).'),
(1h=3600s)'), max_digits=6,
decimal_places=3,
default=None, default=None,
null=True, null=True,
blank=True blank=True