Skip to content

Commit

Permalink
Update postviews.py
Browse files Browse the repository at this point in the history
  • Loading branch information
oktayozel authored Nov 24, 2024
1 parent cc4fdea commit 21b2a6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/app/views_directory/postviews.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
)
Expand Down

0 comments on commit 21b2a6d

Please sign in to comment.