src/blog_admin/views.py
def save_post(self, form: Form) -> Post:
        """Save post and add author to it.
        
        Post needs to be saved before linking hashtag objects.
        """
        post = form.save(commit=False)
        post.author = self.get_user()
        post.save()
        return post
Save post and add author to it.
        
        Post needs to be saved before linking hashtag objects.
        
Save post and add author to it.
Post needs to be saved before linking hashtag objects.
Save post and add author to it . Post needs to be saved before linking hashtag objects .
def save_post(self, form: Form) -> Post:
        post = form.save(commit=False)
        post.author = self.get_user()
        post.save()
        return post
def save_post ( self , form : Form ) -> Post : post = form . save ( commit = False ) post . author = self . get_user ( ) post . save ( ) return post
Save post and add author to it.
Save post and add author to it .
"""Save post and add author to it.
        
        Post needs to be saved before linking hashtag objects.
        """
self
form
Form