Skip to content

Commit

Permalink
Ajoute un commentaire décrivant les tables stockant les sessions
Browse files Browse the repository at this point in the history
  • Loading branch information
philippemilink authored and Situphen committed Sep 1, 2024
1 parent 30d805b commit dfde405
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion zds/utils/custom_cached_db_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@
class CustomSession(AbstractBaseSession):
"""Custom session model to link each session to its user.
This is necessary to list a user's sessions without having to browse all sessions.
Based on https://docs.djangoproject.com/en/4.2/topics/http/sessions/#example"""
Based on https://docs.djangoproject.com/en/4.2/topics/http/sessions/#example
This will create a table named utils_customsession and use it instead of
the table django_session. The content of the latest can be dropped."""

account_id = models.IntegerField(null=True, db_index=True)

Expand Down

0 comments on commit dfde405

Please sign in to comment.