-
-
Notifications
You must be signed in to change notification settings - Fork 858
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow custom icons to be cleared (#9185)
* Allow custom icons to be cleared - Closes #9182 * Bump API version * Update unit test * Loosen test requirements
- Loading branch information
1 parent
94c2157
commit 3940544
Showing
7 changed files
with
69 additions
and
5 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
27 changes: 27 additions & 0 deletions
27
src/backend/InvenTree/part/migrations/0133_alter_partcategory__icon.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,27 @@ | ||
# Generated by Django 4.2.19 on 2025-02-25 22:14 | ||
|
||
import common.icons | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("part", "0132_partparametertemplate_selectionlist"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="partcategory", | ||
name="_icon", | ||
field=models.CharField( | ||
blank=True, | ||
db_column="icon", | ||
help_text="Icon (optional)", | ||
max_length=100, | ||
null=True, | ||
validators=[common.icons.validate_icon], | ||
verbose_name="Icon", | ||
), | ||
), | ||
] |
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
27 changes: 27 additions & 0 deletions
27
src/backend/InvenTree/stock/migrations/0114_alter_stocklocation_custom_icon.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,27 @@ | ||
# Generated by Django 4.2.19 on 2025-02-25 22:14 | ||
|
||
import common.icons | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("stock", "0113_stockitem_status_custom_key_and_more"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="stocklocation", | ||
name="custom_icon", | ||
field=models.CharField( | ||
blank=True, | ||
db_column="icon", | ||
help_text="Icon (optional)", | ||
max_length=100, | ||
null=True, | ||
validators=[common.icons.validate_icon], | ||
verbose_name="Icon", | ||
), | ||
), | ||
] |
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