Catches places where form.save() needs the request
Thank you, tests.
This commit is contained in:
parent
8f79b362f8
commit
351292fcda
8 changed files with 10 additions and 10 deletions
|
@ -30,7 +30,7 @@ class Feed(View):
|
|||
form = forms.FeedStatusTypesForm(request.POST, instance=request.user)
|
||||
if form.is_valid():
|
||||
# workaround to avoid broadcasting this change
|
||||
user = form.save(commit=False)
|
||||
user = form.save(request, commit=False)
|
||||
user.save(broadcast=False, update_fields=["feed_status_types"])
|
||||
filters_applied = True
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue