I have implemented two types of users using:-
class UserProfile(models.Model):
user = models.ForeignKey(User)
is_counter = models.BooleanField()
is_student = models.BooleanField()
So, a user can either be a student or counter. Basically, I have a project
something like student will order food & at counter side, counter user will
get the notification to prepare food.
Now, if the counter user is logged out, I dont want to allow student to
order that food. For that I have to somehow check if counter user is logged
in. Is it possible?
>From what I feel, adding a bool field & making it True when counter user
logs in and making it false when counter user logs out; is not a solution.
The reason being that "what if a counter user gets disconnected somehow (or
closes browser without logging out).
--
Regards,
Abhijeet Rastogi (shadyabhi)
http://www.google.com/profiles/abhijeet.1989
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.