-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: buildings can't be created in the admin UI (#445)
* Fix: buildings can't be created in the admin UI * Makemigrations * Formatting
- Loading branch information
1 parent
8035b9b
commit b6c2415
Showing
2 changed files
with
27 additions
and
0 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,26 @@ | ||
# Generated by Django 4.2.13 on 2024-08-01 22:36 | ||
|
||
from django.db import migrations | ||
|
||
import meshapi.models.util.custom_many_to_many | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("meshapi", "0011_los"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="building", | ||
name="nodes", | ||
field=meshapi.models.util.custom_many_to_many.CustomColumnNameManyToManyField( | ||
blank=True, | ||
db_from_column_name="building_id", | ||
db_to_column_name="network_number", | ||
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", | ||
), | ||
), | ||
] |
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