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
Previous answers explain why the sessions API makes it impossible to create
a FK from Session to User. However, it looks like this isn't the question
you wanted to ask.
Your real question seems to be: "how can I invalidate sessions on password
change?" Fortunately, Django 1.7 includes a new
@googlegroups.com django-developers@googlegroups.com,
(Vaal) Vladimir Ulupov vaal...@gmail.com
Cc: vaal...@gmail.com vaal...@gmail.com
Subject: Re: no relationship between session and user model
Other storages doesn’t need it.
cached_db inherits DbStorage
https://github.com/django/django/blob/master/django
django-d...@googlegroups.com
Subject: no relationship between session and user model
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
com
> django-d...@googlegroups.com
> Date: 19 июня 2014 г. at 23:36:28
> To: django-d...@googlegroups.com
> django-d...@googlegroups.com
> Subject: no relationship between session and user model
>
> Hello!
> There is a reason why in the framework (by default), there
@googlegroups.com
Date: 19 июня 2014 г. at 23:36:28
To: django-developers@googlegroups.com django-developers@googlegroups.com
Subject: no relationship between session and user model
Hello!
There is a reason why in the framework (by default), there is no connection
between the models user and session?
I
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