Skip to content

Commit

Permalink
Fix: nodes is required to edit building object (#600)
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew-Dickinson authored Oct 6, 2024
1 parent d7be145 commit e8ecd33
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 0 deletions.
22 changes: 22 additions & 0 deletions src/meshapi/migrations/0033_alter_building_nodes.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Generated by Django 4.2.13 on 2024-09-23 03:29

from django.db import migrations, models


class Migration(migrations.Migration):
dependencies = [
("meshapi", "0032_alter_permission_options"),
]

operations = [
migrations.AlterField(
model_name="building",
name="nodes",
field=models.ManyToManyField(
blank=True,
help_text="All nodes located on the same structure (i.e. a discrete man-made place identified by the same BIN) that this Building is located within.",
related_name="buildings",
to="meshapi.node",
),
),
]
12 changes: 12 additions & 0 deletions src/meshapi/migrations/0036_merge_20241006_1125.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Generated by Django 4.2.13 on 2024-10-06 15:25

from django.db import migrations


class Migration(migrations.Migration):
dependencies = [
("meshapi", "0033_alter_building_nodes"),
("meshapi", "0035_alter_historicalinstall_ticket_number"),
]

operations = []
1 change: 1 addition & 0 deletions src/meshapi/models/building.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ class Meta:
)
nodes = ManyToManyField(
Node,
blank=True,
help_text="All nodes located on the same structure (i.e. a discrete man-made place identified by the same BIN) "
"that this Building is located within.",
related_name="buildings",
Expand Down

0 comments on commit e8ecd33

Please sign in to comment.