Skip to content

Commit

Permalink
fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
Lioscro committed Sep 19, 2023
1 parent 69be61b commit 63c7442
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions wooey/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,9 @@ def save_formset(self, request, form, formset, change):
instances = formset.save(commit=False)
for obj in instances:
if isinstance(obj, ScriptVersion):
if obj.id:
if not obj.id:
obj.created_by = request.user
else:
obj.updated_by = request.user
obj.updated_by = request.user
formset.save()

class ParameterAdmin(ModelAdmin):
Expand Down

0 comments on commit 63c7442

Please sign in to comment.