Re: no relationship between session and user model

2014-06-19 Thread Vladimir Ulupov (Vaal)
You are right about my question. Next time I will read carefully the release notes. Thx! четверг, 19 июня 2014 г., 21:34:02 UTC+4 пользователь Aymeric Augustin написал: > > Previous answers explain why the sessions API makes it impossible to > create a FK from Session to User. However, it

Re: no relationship between session and user model

2014-06-19 Thread Vladimir Ulupov (Vaal)
otocol only, not user level. > > This relation is not possible out of the box if we want to have highly > customizable framework :) > > Don’t worry, my english is ugly too ;) > > -- > Alexandr Shurigin > > From: Vaal vaa...@gmail.com > Reply: django-d...@googlegroups.

no relationship between session and user model

2014-06-19 Thread Vaal
Hello! There is a reason why in the framework (by default), there is no connection between the models user and session? I mean ForeignKey(to User) in Session model for example. This would be useful in a situation when the user changes the password, and we could remove all the sessions of that