Skip to content

Commit

Permalink
Fix, set feedback_by_ip
Browse files Browse the repository at this point in the history
  • Loading branch information
allcaps committed Sep 30, 2024
1 parent f042792 commit 41de664
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wagtail_helpdesk/cms/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -744,7 +744,7 @@ def index(self, request, *args, **kwargs):
if client_ip.startswith("::ffff:"):
client_ip = client_ip.split("::ffff:")[1]

obj.asked_by_ip = client_ip
obj.feedback_by_ip = client_ip
obj.save()
request.session["question_id"] = obj.pk
return HttpResponseRedirect(self.reverse_subpage("keep-me-posted"))
Expand Down

0 comments on commit 41de664

Please sign in to comment.