Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Commit missing fixture for global gym configuration

Roland Geiderc375518df159
diff --git a/extras/scripts/filter-fixtures.py b/extras/scripts/filter-fixtures.py
index 659a1a5d8..85b78cae5 100644
--- a/extras/scripts/filter-fixtures.py
+++ b/extras/scripts/filter-fixtures.py
@@ -65,7 +65,7 @@ filter_dump(data, ('core.license',), 'licenses.json')
# Configurations
#
filter_dump(data, ('config.languageconfig',), 'language_config.json')
-filter_dump(data, ('config.gymconfig',), 'gym-config.json')
+filter_dump(data, ('config.gymconfig',), 'gym_config.json')
#
# Other
diff --git a/wger/core/fixtures/gym_config.json b/wger/core/fixtures/gym_config.json
new file mode 100644
index 000000000..d24002e11
--- /dev/null
+++ b/wger/core/fixtures/gym_config.json
@@ -0,0 +1,9 @@
+[
+ {
+ "pk": 1,
+ "model": "config.gymconfig",
+ "fields": {
+ "default_gym": null
+ }
+ }
+]
\ No newline at end of file
diff --git a/wger/main.py b/wger/main.py
index bc1b03166..16d8db6b1 100755
--- a/wger/main.py
+++ b/wger/main.py
@@ -389,6 +389,7 @@ def load_fixtures():
# Config
path = os.path.join(current_dir, 'config', 'fixtures/')
call_command("loaddata", path + "language_config.json")
+ call_command("loaddata", path + "gym_config.json")
# Manager
# path = os.path.join(current_dir, 'manager', 'fixtures/')