home / django_tickets / tickets

tickets: 2445

This data as json

id created changetime last_pulled_from_trac stage status component type severity version resolution summary description owner reporter keywords easy has_patch needs_better_patch needs_tests needs_docs ui_ux
2445 2006-07-29 02:59:33 2014-11-12 21:48:14 2022-03-06 03:26:01.747475 Accepted closed Core (Other) New feature Normal dev fixed [patch] allow callable values for limit_choices_to Allow '''limit_choices_to''' to test for and invoke callable value arguments. This would allow filtering on dynamically determined values. It enhances the possibilities for customising the admin interface. This may be related to Ticket 2193 (sounds similar at any rate). For example: {{{ def assigned_tasks(): return get_assigned_tasks_id_list(blah, blah) class TimeRecord(models.Model): task = models.ForeignKey(Task, limit_choices_to = {'id__in': assigned_tasks}) }}} Tim Graham <timograham@gmail.com> michael@actrix.gen.nz sprint2013 0 1 0 0 0 0
Powered by Datasette · Queries took 1.446ms