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.

On Thursday, June 27, 2019 at 4:22:01 PM UTC+3, Gaurav Sahu wrote:
>
> 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.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/1ef930fa-b9f8-4d7a-ae78-1e85638d86ec%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to