mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-12 10:05:39 +00:00
removes all lines consisting only of spaces
this really bothers me for some reason - nothing technical
This commit is contained in:
6
tasks.py
6
tasks.py
@ -295,7 +295,7 @@ def export_records(c, filename='data.json'):
|
||||
|
||||
for entry in data:
|
||||
if "model" in entry:
|
||||
|
||||
|
||||
# Clear out any permissions specified for a group
|
||||
if entry["model"] == "auth.group":
|
||||
entry["fields"]["permissions"] = []
|
||||
@ -335,7 +335,7 @@ def import_records(c, filename='data.json'):
|
||||
|
||||
for entry in data:
|
||||
if "model" in entry:
|
||||
|
||||
|
||||
# Clear out any permissions specified for a group
|
||||
if entry["model"] == "auth.group":
|
||||
entry["fields"]["permissions"] = []
|
||||
@ -370,7 +370,7 @@ def import_fixtures(c):
|
||||
fixtures = [
|
||||
# Build model
|
||||
'build',
|
||||
|
||||
|
||||
# Common models
|
||||
'settings',
|
||||
|
||||
|
Reference in New Issue
Block a user