anonymous user in django app

14 views
Skip to first unread message

Gaurav Sahu

unread,
Jun 27, 2019, 9:22:01 AM6/27/19
to Django users
Hy, I have a Django blog app. I want to add a feature in which a registered user can add a post anonymously. But I couldn't figure out how to do it. Anybody help me how can I implement this feature? It will be a great help.
Thanks in advance.

Volodymyr Sergeyev

unread,
Jul 1, 2019, 3:06:38 AM7/1/19
to Django users
Hi,

You may add a checkbox into your form with comment, "Post anonymously".
And then in view check this value and if so - leave Post's user field blank.

Regards,

V.
Reply all
Reply to author
Forward
0 new messages