> This code looks absolutely right.
Boy there's a phrase I don't hear often!
> What do you mean by 'setting
> self.fields didn't work'? How did it not work? What didn't happen that
> you expected to happen? Did you get errors?
If I put in a statement logging the value of self.show_all, it is
unaffected by whether I call KeywordsForm as
KeywordsForm(show_all=True) or KeywordsForm(show_all=False).
> That is the usual way of dynamically setting an attribute on a field,
> and I've used it many times with no problems.
Thank you, Daniel; it is helpful to know that I have the right
approach but must have a bug somewhere. I'll have another whack at
it-- sometimes a nights sleep makes plain some imbecility on my
part. :-)
Jim
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
No comments:
Post a Comment