summaryrefslogtreecommitdiff
path: root/yaksh/forms.py
diff options
context:
space:
mode:
authorCruiseDevice2020-10-01 14:17:56 +0530
committerankitjavalkar2020-10-08 10:42:51 +0530
commitedf3b4c5d9afdaeb7c6d8e45484401bdce26e23c (patch)
treed8454d5a418da7309a9714f6389efe7bef2930f8 /yaksh/forms.py
parent86a8e2d43294eadf164710589c70bf497f65d801 (diff)
downloadonline_test-edf3b4c5d9afdaeb7c6d8e45484401bdce26e23c.tar.gz
online_test-edf3b4c5d9afdaeb7c6d8e45484401bdce26e23c.tar.bz2
online_test-edf3b4c5d9afdaeb7c6d8e45484401bdce26e23c.zip
User can create anonymous post and comment
Diffstat (limited to 'yaksh/forms.py')
-rw-r--r--yaksh/forms.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/yaksh/forms.py b/yaksh/forms.py
index c179081..091505d 100644
--- a/yaksh/forms.py
+++ b/yaksh/forms.py
@@ -613,7 +613,7 @@ class TestcaseForm(forms.ModelForm):
class PostForm(forms.ModelForm):
class Meta:
model = Post
- fields = ["title", "description", "image"]
+ fields = ["title", "description", "image", "anonymous"]
widgets = {
'title': forms.TextInput(
attrs={
@@ -636,7 +636,7 @@ class PostForm(forms.ModelForm):
class CommentForm(forms.ModelForm):
class Meta:
model = Comment
- fields = ["description", "image"]
+ fields = ["description", "image", "anonymous"]
widgets = {
'description': forms.Textarea(
attrs={