Re: Simple Template Dict Problem

2007-06-18 Thread Tim Terlegård
On Mon, Jun 18, 2007 at 03:44:03PM +0200, Aidas Bendoraitis wrote: > > Hello Trey! > > You can iterate by the entries of a dictionary, using this: > > {% for i in d.items %} > {{ i.0 }}: {{ i.1 }} > {% endfor %} > > Regards, > Aidas Bendoraitis aka Archatas > > > > On 6/7/07, Trey <[EMAIL

editable in fields

2006-01-30 Thread Tim Terlegård
To get a non-editable field you can do field = meta.CharField(editable = False). This is meant for hiding the field, right? Not to make it readonly in code? To me hidden is more intuitive than editable. I thought that when so much was renamed anyway... :) Tim

prepopulate_from

2006-01-26 Thread Tim Terlegård
Why is a field with prepopulate_from populated using javascript? It's ok that javascript is used for some tasks, but why is it used for populating a field before it's saved? Can't it be done in the save() method instead? Tim

repository with apps

2006-01-25 Thread Tim Terlegård
It would be nice with an official repository with django apps. There may very well exist 1000 roughly equivalent poll app implementations out there already. Wouldn't it be good if we had a repository of reusable common apps? I think it would be awesome. Not sure who should get commit access and s