-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Systems and services improvements (#4879)
* systen service modal mods * update meter enums * property display field * alphabetical actions * nav error and modal arrangement * precommit * unit refactors * precommit * fix tests --------- Co-authored-by: Ross Perry <[email protected]>
- Loading branch information
1 parent
ba557eb
commit 72bbc85
Showing
29 changed files
with
433 additions
and
232 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
# Generated by Django 3.2.25 on 2024-11-06 21:39 | ||
|
||
import quantityfield.fields | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("seed", "0236_auto_20241030_1434"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="batterysystem", | ||
name="efficiency", | ||
field=models.FloatField(), | ||
), | ||
migrations.AlterField( | ||
model_name="meter", | ||
name="connection_type", | ||
field=models.IntegerField( | ||
choices=[ | ||
(1, "Imported"), | ||
(2, "Exported"), | ||
(3, "Receiving Service"), | ||
(4, "Returning To Service"), | ||
(5, "Total From Users"), | ||
(6, "Total To Users"), | ||
], | ||
default=1, | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="service", | ||
name="emission_factor", | ||
field=models.FloatField(null=True), | ||
), | ||
migrations.RemoveField( | ||
model_name="batterysystem", | ||
name="capacity", | ||
), | ||
migrations.RemoveField( | ||
model_name="dessystem", | ||
name="capacity", | ||
), | ||
migrations.AddField( | ||
model_name="batterysystem", | ||
name="energy_capacity", | ||
field=quantityfield.fields.QuantityField(base_units="kWh", default=1, unit_choices=["kWh"]), | ||
preserve_default=False, | ||
), | ||
migrations.AddField( | ||
model_name="batterysystem", | ||
name="power_capacity", | ||
field=quantityfield.fields.QuantityField(base_units="kW", default=1, unit_choices=["kW"]), | ||
preserve_default=False, | ||
), | ||
migrations.AddField( | ||
model_name="dessystem", | ||
name="cooling_capacity", | ||
field=quantityfield.fields.QuantityField(base_units="Ton", null=True, unit_choices=["Ton"]), | ||
), | ||
migrations.AddField( | ||
model_name="dessystem", | ||
name="heating_capacity", | ||
field=quantityfield.fields.QuantityField(base_units="MMBtu", null=True, unit_choices=["MMBtu"]), | ||
), | ||
migrations.AddField( | ||
model_name="evsesystem", | ||
name="voltage", | ||
field=quantityfield.fields.QuantityField(base_units="V", default=1, unit_choices=["V"]), | ||
preserve_default=False, | ||
), | ||
migrations.AlterField( | ||
model_name="batterysystem", | ||
name="voltage", | ||
field=quantityfield.fields.QuantityField(base_units="V", unit_choices=["V"]), | ||
), | ||
migrations.AlterField( | ||
model_name="evsesystem", | ||
name="power", | ||
field=quantityfield.fields.QuantityField(base_units="kW", unit_choices=["kW"]), | ||
), | ||
migrations.AddConstraint( | ||
model_name="dessystem", | ||
constraint=models.CheckConstraint( | ||
check=models.Q(("heating_capacity__isnull", False), ("cooling_capacity__isnull", False), _connector="OR"), | ||
name="heating_or_cooling_capacity_required", | ||
), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.