2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-04 04:30:56 +00:00

removes all lines consisting only of spaces

this really bothers me for some reason - nothing technical
This commit is contained in:
2021-05-06 12:11:38 +02:00
parent ecc9eec084
commit f2b0717d10
91 changed files with 494 additions and 494 deletions

View File

@ -40,7 +40,7 @@ class InvenTreeSetting(models.Model):
The key of each item is the name of the value as it appears in the database.
Each global setting has the following parameters:
- name: Translatable string name of the setting (required)
- description: Translatable string description of the setting (required)
- default: Default value (optional)
@ -412,7 +412,7 @@ class InvenTreeSetting(models.Model):
# Evaluate the function (we expect it will return a list of tuples...)
return choices()
"""
return choices
@classmethod
@ -522,7 +522,7 @@ class InvenTreeSetting(models.Model):
# Enforce standard boolean representation
if setting.is_bool():
value = InvenTree.helpers.str2bool(value)
setting.value = str(value)
setting.save()
@ -664,7 +664,7 @@ class InvenTreeSetting(models.Model):
if validator == int:
return True
if type(validator) in [list, tuple]:
for v in validator:
if v == int:
@ -675,7 +675,7 @@ class InvenTreeSetting(models.Model):
def as_int(self):
"""
Return the value of this setting converted to a boolean value.
If an error occurs, return the default value
"""
@ -685,7 +685,7 @@ class InvenTreeSetting(models.Model):
value = self.default_value()
return value
class PriceBreak(models.Model):
"""