LazyObject instead of Model instance

Hi! I want to add a new entry to the database, but can’t do it because ForeighKey field wait for Model instance but request.user returns LazyObjects. Please check my code below.

class Forum(models.Model):
creator = models.ForeignKey(User, on_delete=models.SET_NULL, null=True)

def forum_create(request):
title = request.POST.get('title')
description = request.POST.get('description')
f = Forum(title=title, description=description,, creator=get_user(request))

ValueError at /forum/forum/create Cannot assign "<User: Shecspi>": "Forum.creator" must be a "User" instance.

I have already tried request.user,, auth.get_user(request), but the results was the same - LazyObject.

Could you please help me?

I think it should be fine if you access request.user first for something else. For example, I can imagne you actually want to wrap that view with @login_required: