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 <allaberdi16yazha...@gmail.com>
wrote:

> [image: image.png]
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAJwZnddXepqo9Ea73GPZYTt4CK9V5tz5V8sS1xU-WVqeYg8qMQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAJwZnddXepqo9Ea73GPZYTt4CK9V5tz5V8sS1xU-WVqeYg8qMQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

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

Reply via email to