AnonymousUser as Foreignkey?

104 views
Skip to first unread message

Raitucarp

unread,
Jun 12, 2012, 4:00:43 AM6/12/12
to django...@googlegroups.com
How to use anonymoususer as foreignkey?

I need anonymoususer, anonymous user is my main features of my app. Thanks

Kurtis Mullins

unread,
Jun 12, 2012, 10:32:02 AM6/12/12
to django...@googlegroups.com
Well, unfortunately the standard Anonymous User ID is always none. (source: https://docs.djangoproject.com/en/dev/topics/auth/#anonymous-users)

So, you can't really use their ID as a foreign key.

However, I'm having trouble picturing your use-case here. If you could give some more information on what you're trying to accomplish, maybe we can shoot some ideas your way.

On Tue, Jun 12, 2012 at 4:00 AM, Raitucarp <ribhararnu...@gmail.com> wrote:
How to use anonymoususer as foreignkey?

I need anonymoususer, anonymous user is my main features of my app. Thanks

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/Ckm4xHhFTUcJ.
To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

Reply all
Reply to author
Forward
0 new messages