Re: Dynamically altering a (ForeignKey) ModelChoiceField’s values

2018-04-30 Thread Jim Illback
;mailto:django-users@googlegroups.com> [mailto:django-users@googlegroups.com] On Behalf Of Jim Illback Sent: Friday, April 27, 2018 11:33 AM To: Django users Subject: Re: Dynamically altering a (ForeignKey) ModelChoiceField’s values I also need to have the specific ID specified in the URL, so

RE: Dynamically altering a (ForeignKey) ModelChoiceField’s values

2018-04-27 Thread Matthew Pava
jango-users@googlegroups.com<mailto:django-users@googlegroups.com> [mailto:django-users@googlegroups.com] On Behalf Of Jim Illback Sent: Friday, April 27, 2018 11:33 AM To: Django users Subject: Re: Dynamically altering a (ForeignKey) ModelChoiceField’s values I also need to have the specific ID specifi

Re: Dynamically altering a (ForeignKey) ModelChoiceField’s values

2018-04-27 Thread Jim Illback
ps.com<mailto:django-users@googlegroups.com> [mailto:django-users@googlegroups.com] On Behalf Of Jim Illback Sent: Friday, April 27, 2018 11:33 AM To: Django users Subject: Re: Dynamically altering a (ForeignKey) ModelChoiceField’s values I also need to have the specific ID specified in the URL

RE: Dynamically altering a (ForeignKey) ModelChoiceField’s values

2018-04-27 Thread Matthew Pava
= CheckInForm(request.POST or None, instance=instance) From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On Behalf Of Jim Illback Sent: Friday, April 27, 2018 11:33 AM To: Django users Subject: Re: Dynamically altering a (ForeignKey) ModelChoiceField’s values I also need to

Re: Dynamically altering a (ForeignKey) ModelChoiceField’s values

2018-04-27 Thread Jim Illback
helps! From: django-users@googlegroups.com<mailto:django-users@googlegroups.com> [mailto:django-users@googlegroups.com] On Behalf Of Jim Illback Sent: Friday, April 27, 2018 11:16 AM To: Django users Subject: Re: Dynamically altering a (ForeignKey) ModelChoiceField’s values To make this eas

RE: Dynamically altering a (ForeignKey) ModelChoiceField’s values

2018-04-27 Thread Matthew Pava
: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On Behalf Of Jim Illback Sent: Friday, April 27, 2018 11:16 AM To: Django users Subject: Re: Dynamically altering a (ForeignKey) ModelChoiceField’s values To make this easier, here is just a simple the question. Does Django give a

Re: Dynamically altering a (ForeignKey) ModelChoiceField’s values

2018-04-27 Thread Jim Illback
To make this easier, here is just a simple the question. Does Django give a method that can be overridden while processing a form which has access to the incoming URL parameters and precedes the display of the form’s fields, specifically being able to alter the fields’s query set before it is d

Dynamically altering a (ForeignKey) ModelChoiceField’s values

2018-04-25 Thread Jim Illback
I wondered if anyone has had to alter the queryset behind a model form’s foreign key field which presents as a model choice field? Briefly, I have a client attribute table with the foreign key to a chore/time table. For an add of the client attribute table, I want to limit entries to unassigned