fix: Updated Store for Product Categories, Products, and Product Permutations pages for tweaked architecture for controllers, datastores, and python data objects.
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -22,7 +22,7 @@ from flask_wtf.recaptcha import RecaptchaField
|
||||
|
||||
|
||||
class Filters_Product(FlaskForm):
|
||||
id_category = SelectField('Category', validators=[Optional()], choices=[('', 'All')])
|
||||
id_category = SelectField('Category', validators=[Optional()], choices=[('', 'All')], default='')
|
||||
is_not_empty = BooleanField('Not empty only?')
|
||||
active = BooleanField("Active only?", default = True)
|
||||
@classmethod
|
||||
|
||||
@@ -26,8 +26,8 @@ from abc import ABCMeta, abstractmethod
|
||||
|
||||
|
||||
class Filters_Product_Permutation(Form_Base):
|
||||
id_category = SelectField('Category', validators=[Optional()], choices=[('', 'All')])
|
||||
id_product = SelectField('Product', validators=[Optional()], choices=[('', 'All')])
|
||||
id_category = SelectField('Category', validators=[Optional()], choices=[('', 'All')], default='')
|
||||
id_product = SelectField('Product', validators=[Optional()], choices=[('', 'All')], default='')
|
||||
is_out_of_stock = BooleanField('Out of stock only?')
|
||||
quantity_min = FloatField('Min stock')
|
||||
quantity_max = FloatField('Max stock')
|
||||
|
||||
Reference in New Issue
Block a user