Code

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#16560 closed New feature (needsinfo)

repasses cleanup function to SessionBase

Reported by: wpjunior Owned by: nobody
Component: contrib.sessions Version: 1.3
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

for this example:

when use "python manage.py cleanup"
calls cleanup method off my Backend

class MyBackend(SessionBase):
    def cleanup(self):
        # remove expired data

Attachments (0)

Change History (2)

comment:1 Changed 3 years ago by aaugustin

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to needsinfo
  • Status changed from new to closed

I'm sorry, but your description doesn't contain enough information for me to understand what's happening and why you think it's a bug or a missing feature in Django.

Are you suggesting that sessions backends should provide a cleanup method, and that ./manage.py cleanup should call the cleanup method of the backend configured in the settings?

comment:2 Changed 3 years ago by jacob

  • milestone 1.4 deleted

Milestone 1.4 deleted

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.