2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-13 18:45:40 +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

@ -159,7 +159,7 @@ class StockItemLabelList(LabelListView, StockItemLabelMixin):
"""
Filter the StockItem label queryset.
"""
queryset = super().filter_queryset(queryset)
# List of StockItem objects to match against
@ -178,7 +178,7 @@ class StockItemLabelList(LabelListView, StockItemLabelMixin):
# Keep track of which labels match every specified stockitem
valid_label_ids = set()
for label in queryset.all():
matches = True
@ -293,7 +293,7 @@ class StockLocationLabelList(LabelListView, StockLocationLabelMixin):
"""
queryset = super().filter_queryset(queryset)
# List of StockLocation objects to match against
locations = self.get_locations()

View File

@ -139,7 +139,7 @@ class LabelConfig(AppConfig):
except:
# Database might not yet be ready
return
src_dir = os.path.join(
os.path.dirname(os.path.realpath(__file__)),
'templates',

View File

@ -44,7 +44,7 @@ def rename_label(instance, filename):
def validate_stock_item_filters(filters):
filters = validateFilterString(filters, model=stock.models.StockItem)
return filters
@ -82,7 +82,7 @@ class LabelTemplate(models.Model):
# Each class of label files will be stored in a separate subdirectory
SUBDIR = "label"
# Object we will be printing against (will be filled out later)
object_to_print = None

View File

@ -40,7 +40,7 @@ class TestReportTests(InvenTreeAPITestCase):
return response.data
def test_list(self):
response = self.do_list()
# TODO - Add some report templates to the fixtures