From 21b2a6df570968c3bc11536567d07f6a83135b71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oktay=20=C3=96zel?= Date: Sun, 24 Nov 2024 13:09:23 +0300 Subject: [PATCH] Update postviews.py --- backend/app/views_directory/postviews.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/app/views_directory/postviews.py b/backend/app/views_directory/postviews.py index e2eb9176..b99beaa5 100644 --- a/backend/app/views_directory/postviews.py +++ b/backend/app/views_directory/postviews.py @@ -90,7 +90,7 @@ def create_post(request): post = Post.objects.create( title=title, description=description, - author=request.user.username, + author=request.user, tags=tags, # Directly assign the list of tags created_at=timezone.now() )