-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add ordering for products (#925)
## Describe your changes Fixes: # ## Checklist before requesting review - [ ] Feature/fix PRs should add one atomic (as small as possible) feature or fix. - [ ] The code compiles and all the tests pass.
- Loading branch information
1 parent
881e295
commit 295e543
Showing
2 changed files
with
38 additions
and
1 deletion.
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,33 @@ | ||
# Generated by Django 2.2.24 on 2023-08-16 00:11 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("accounting", "0026_rename_hidden_products_field"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterModelOptions( | ||
name="product", | ||
options={ | ||
"default_permissions": [], | ||
"ordering": ["ordering", "category"], | ||
"permissions": [ | ||
("base", "View the Accounting tab"), | ||
("export_orders", "Export orders"), | ||
("ths_customer_ids", "Edit companies without THS customer IDs"), | ||
], | ||
"verbose_name_plural": "Products", | ||
}, | ||
), | ||
migrations.AddField( | ||
model_name="product", | ||
name="ordering", | ||
field=models.IntegerField( | ||
default=0, | ||
help_text="Order the product. The higher the number, the higher the sorting.", | ||
), | ||
), | ||
] |
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