You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have another component which is a form to create a new post.
I would like after saving a new post to refresh my ListPostView to display my new post.
classCreatePostView(UnicornView):
content=""defsave(self):
ifself.content:
post=Post.objects.create(content=self.content)
self.content=""# refresh ListPostView so it can show my new post.
Code of Conduct
I agree to follow this project's Code of Conduct
The text was updated successfully, but these errors were encountered:
I have a
ListPostView
component which list my posts.I have another component which is a form to create a new post.
I would like after saving a new post to refresh my
ListPostView
to display my new post.Code of Conduct
The text was updated successfully, but these errors were encountered: