#1137 closed defect (fixed)
Add __contains__ method to SessionWrapper
| Reported by: | brantley | Owned by: | Adrian Holovaty |
|---|---|---|---|
| Component: | Core (Other) | Version: | |
| 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
It's usefull to be able to do if ('key' in request.session), therefore a __contains__ method should be added to the SessionWrapper. Patch attached.
Attachments (1)
Change History (2)
by , 20 years ago
| Attachment: | sessionwrapper.diff added |
|---|
comment:1 by , 20 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
patch for problem