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

35 views
Skip to first unread message

Chelsea Fan

unread,
Dec 15, 2020, 1:26:51 PM12/15/20
to django...@googlegroups.com
image.png

Gabriel Araya Garcia

unread,
Dec 15, 2020, 5:08:16 PM12/15/20
to django...@googlegroups.com
I don't undertand that you say. Can you explain with more details?

Gabriel Araya Garcia
GMI - Desarrollo de Sistemas Informáticos




El mar, 15 dic 2020 a las 15:25, Chelsea Fan (<allaberdi...@gmail.com>) escribió:
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAJwZnddXepqo9Ea73GPZYTt4CK9V5tz5V8sS1xU-WVqeYg8qMQ%40mail.gmail.com.

Ronald Kamulegeya

unread,
Dec 15, 2020, 11:30:36 PM12/15/20
to django...@googlegroups.com
Hi, use 
Obj.save()
Instead of
Form.save()

Chelsea Fan

unread,
Dec 16, 2020, 2:19:11 AM12/16/20
to django...@googlegroups.com

vijay naudiyal

unread,
Dec 16, 2020, 9:10:30 AM12/16/20
to django...@googlegroups.com
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
Reply all
Reply to author
Forward
0 new messages