diff options
author | CruiseDevice | 2020-10-01 14:17:56 +0530 |
---|---|---|
committer | ankitjavalkar | 2020-10-08 10:42:51 +0530 |
commit | edf3b4c5d9afdaeb7c6d8e45484401bdce26e23c (patch) | |
tree | d8454d5a418da7309a9714f6389efe7bef2930f8 /yaksh/forms.py | |
parent | 86a8e2d43294eadf164710589c70bf497f65d801 (diff) | |
download | online_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.py | 4 |
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={ |