Skip to content

Commit

Permalink
Automatic linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Github-actions committed Nov 9, 2024
1 parent 21e0e8f commit 109338c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion wger/manager/views/set.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,11 @@
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, WeightUnit
from wger.manager.forms import (
SetForm,
SettingForm,
Expand Down Expand Up @@ -143,6 +146,7 @@ class SettingFormOverride(forms.ModelForm):
class Meta:
model = Setting
fields = SETTING_FORMSET_FIELDS

def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.fields['weight_unit'].initial = pref_weight_unit_num
Expand Down

0 comments on commit 109338c

Please sign in to comment.