Fix TestWhatsNewInWagtailVersionPanel for Django 4.2a0
Fix TestWhatsNewInWagtailVersionPanel for Django 4.2a0

This fails from https://github.com/django/django/commit/6220c445c40a6a7f4d442de8bde2628346153963 onward - evidently it's picking up a stale copy of the user profile object from the request, from before the database update has happened. Fix this by performing the database update before building the request.

zerolab/wagtail,wagtail/wagtail,thenewguy/wagtail,thenewguy/wagtail,rsalmaso/wagtail,rsalmaso/wagtail,zerolab/wagtail,thenewguy/wagtail,zerolab/wagtail,thenewguy/wagtail,wagtail/wagtail,wagtail/wagtail,zerolab/wagtail,wagtail/wagtail,rsalmaso/wagtail,zerolab/wagtail,rsalmaso/wagtail,thenewguy/wagtail,rsalmaso/wagtail,wagtail/wagtail