Self hosted FLOSS fitness/workout, nutrition and weight tracker
Automatic linting
Github-actions109338c86d46
diff --git a/wger/manager/views/set.py b/wger/manager/views/set.pyindex 2c78a6cc5..167685dc3 100644--- a/wger/manager/views/set.py+++ b/wger/manager/views/set.py@@ -36,8 +36,11 @@ from django.shortcuts import (from django.urls import reverse# wger+from wger.core.models import (+ UserProfile,+ WeightUnit,+)from wger.exercises.models import ExerciseBase-from wger.core.models import UserProfile, WeightUnitfrom wger.manager.forms import (SetForm,SettingForm,@@ -143,6 +146,7 @@ def get_formset(request, base_pk, reps=Set.DEFAULT_SETS):class Meta:model = Settingfields = SETTING_FORMSET_FIELDS+def __init__(self, *args, **kwargs):super().__init__(*args, **kwargs)self.fields['weight_unit'].initial = pref_weight_unit_num