implement dynamic limit_choices_to
|Reported by:||anonymous||Owned by:||Adrian Holovaty|
|Component:||Database layer (models, ORM)||Version:|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
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.