Re: limit_choices_to using a dynamic model attribute

2009-03-30 Thread Jamie
Ah, after playing with the code some more I resolved my own problem. Instead of relying on the 'is_active' dynamic model attribute for use with limit_choices_to, I was able to get the following to accomplish the same task: limit_choices_to={ 'end_date__gte': datetime.date.today, 'start_date__lte'

limit_choices_to using a dynamic model attribute

2009-03-30 Thread Jamie
Is it possible to use limit_choices_to with a dynamic model attribute? Some background: I am using a StaffMember model for content creators who do not have user accounts. Each staff member has a start and end date and the model has a dynamic attribute called 'is_active' that compares the start/en