Opened 19 years ago
Closed 18 years ago
#2193 closed enhancement (duplicate)
implement dynamic limit_choices_to
Reported by: | anonymous | Owned by: | Adrian Holovaty |
---|---|---|---|
Component: | Database layer (models, ORM) | 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
One should be able to supply limit_choices_to with a callable. Ideally this callable should get the model instance as a parameter.
This would allow a powerful filtering depending on arbitrary conditions which would also be usable in the admin interface.
Change History (2)
comment:1 by , 19 years ago
Type: | defect → enhancement |
---|
comment:2 by , 18 years ago
Resolution: | → duplicate |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Duplicate of #2445, which has a patch.