-
Notifications
You must be signed in to change notification settings - Fork 963
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add proxy node occupancy feature
- Loading branch information
Showing
7 changed files
with
310 additions
and
17 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
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
48 changes: 48 additions & 0 deletions
48
apps/proxy/migrations/0024_occupancyconfig_color_occupancyconfig_remark_and_more.py
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,48 @@ | ||
# Generated by Django 4.2.6 on 2023-12-22 06:12 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("proxy", "0023_alter_userproxynodeoccupancy_index_together_and_more"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="occupancyconfig", | ||
name="color", | ||
field=models.CharField( | ||
blank=True, | ||
choices=[ | ||
("", "empty"), | ||
("is-info", "is-info"), | ||
("is-link", "is-link"), | ||
("is-primary", "is-primary"), | ||
("is-danger", "is-danger"), | ||
("is-warning", "is-warning"), | ||
("is-uccess", "is-success"), | ||
], | ||
default="", | ||
max_length=32, | ||
verbose_name="颜色", | ||
), | ||
), | ||
migrations.AddField( | ||
model_name="occupancyconfig", | ||
name="remark", | ||
field=models.CharField( | ||
blank=True, default="", max_length=64, verbose_name="备注" | ||
), | ||
), | ||
migrations.AddField( | ||
model_name="occupancyconfig", | ||
name="status", | ||
field=models.CharField( | ||
choices=[("active", "active"), ("normal", "normal")], | ||
default="normal", | ||
max_length=32, | ||
verbose_name="状态", | ||
), | ||
), | ||
] |
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.