Re: how to set CharField default value to logged in admin user?

2008-07-17 Thread etng
I don't think you can do that in you feild define phrase.. but you can use the pre_save hook to auto populate it with the current logged user's name.Try to find the threadlocal middle ware,it can help you to handle it! - Best regards, etng [EMAIL PROTECTED] http://www.etng.net/blo

Re: Stupid template question

2007-12-14 Thread etng
It seems that you've made a typo. change {{myDict.key}} to {{myDict.keys}} On Dec 14, 2007 3:03 PM, Steve Freitas <[EMAIL PROTECTED]> wrote: > > I have a dictionary, and I'd like to iterate over the keys, using the > keys to look up the result, like: > > {% for key in myDict %} > The key is {{key