Update by natay on Tue May  7 08:32:34 EDT 2019 from H7-D25RF0PLGQ18
@@ -149,10 +149,10 @@ class PostShortForm(forms.Form):
self.post = post
super().__init__(*args, **kwargs)
- initial_content = "" if not self.post else self.post.content
+ inital_content = "" if not self.post else self.post.content
self.fields["content"] = forms.CharField(widget=PagedownWidget(template="widgets/pagedown.html"),
min_length=2, max_length=5000,
- initial=initial_content)
+ initial=inital_content)
parent_uid = forms.CharField(widget=forms.HiddenInput(), min_length=2, max_length=5000)
project_uid = forms.CharField(widget=forms.HiddenInput(), min_length=2, max_length=5000,
@@ -171,6 +171,7 @@ class PostShortForm(forms.Form):
self.post.save()
else:
parent = Post.objects.filter(uid=parent).first()
+ project = Project.objects.filter(uid=project).first()
self.post = auth.create_post(title=parent.root.title,
parent=parent,
