Tuesday, December 15, 2020

Re: hello guys, help me please, I could not associate username to a post

You can also try get_user(request) instead of request.user

Or also self.requesr.user if you take self as argument.

Let me know if it works for you

Cheers
Vijay

On Tue, Dec 15, 2020, 23:56 Chelsea Fan <allaberdi16yazhanow@gmail.com> wrote:

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAJwZnddXepqo9Ea73GPZYTt4CK9V5tz5V8sS1xU-WVqeYg8qMQ%40mail.gmail.com.

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CABm_SG3Smjy50nOqrgO-3xXo-rCQE_RdDT33Q8%2BZZY5cRCO1Nw%40mail.gmail.com.

No comments:

Post a Comment