Re: How to add a post-login information to an authenticated user?

2013-10-18 Thread Khanh Tran
Even though i have not directly answered my question, i found out that session storage is an alternative solution. On Friday, October 18, 2013 12:17:50 PM UTC-7, Khanh Tran wrote: > > I am using out of the box django 1.5 authentication solution. After > authenticated, i wa

How to add a post-login information to an authenticated user?

2013-10-18 Thread Khanh Tran
I am using out of the box django 1.5 authentication solution. After authenticated, i want to add a 'post_login_info' to the user using user_logged_in signal from django.contrib.auth.signals from django.contrib.auth.signals import user_logged_in from django.dispatch import receiver

Authenticated user loss an attribute that is added under user_logged_in signal.

2013-10-18 Thread Khanh Tran
I am using out of the box django 1.5 authentication solution. I also user_logged_in signal from django.contrib.auth.signals to add a piece of information to the logged in user to hope i can retrieve it later as follow: from django.contrib.auth.signals import user_logged_in from django.dispatch

Data attribute (aka instant variable) added to the current logged-in user through user_logged_in signal cannot be retrieve later.

2013-10-18 Thread Khanh Tran
I am using out of the box django 1.5 authentication solution. After user is logged in, i use build-in user_logged_in signal from django.contrib.auth.signals to add a piece of information to the logged in user as follow: from django.contrib.auth.signals import user_logged_in from

How to implement a custom prerequisite action that is similar to login require for a class-based generic view?

2013-10-11 Thread Khanh Tran
In my models, there is a many-to-many relationship between User and Store that she works for. After authenticated, if the user want to access a view that is specific to a store that she belongs to, a prerequisite action would be prompting her for the store she want to work with, unless she only

Re: Is there an equivalent to JPA @embedded in django modeling

2013-10-04 Thread Khanh Tran
Thank you, jondbaker. That works! On Wednesday, October 2, 2013 3:55:11 PM UTC-7, Khanh Tran wrote: > > Lets say both Customer and Business have an Address. In JPA, we can store > address attributes(street,city,state,zip) directly inside Customer and > Business using @Embedded a

Is there an equivalent to JPA @embedded in django modeling

2013-10-02 Thread Khanh Tran
Lets say both Customer and Business have an Address. In JPA, we can store address attributes(street,city,state,zip) directly inside Customer and Business using @Embedded annotation.Is there an equivalent to @embedded in python without using ForeignKey field. -- You received this message