newforms.BooleanField needs a required=False?

2007-04-21 Thread Terji7
Hi, I'm making my first 0.96 application, a Faroe Islands tax calculator (it's at gladsheinur.webfactional.com/skattur/, check it out, it's a work in progress). I'm trying to use a BooleanField, but GET requests send nothing back to the server if the checkbox is unchecked. That makes the form re

Re: appname in admin

2007-01-05 Thread Terji7
Andy Dustman wrote: You need to provide your own replacement for some admin templates, specifically admin/base_site.html and maybe admin/base.html, depending on what you want do do, and put them in one of your TEMPLATE_DIRS. For i18n purposes it would be neat if you could do it in the model

Re: ImageField: Unique with number, not underscore?

2006-12-13 Thread Terji7
Oliver Lavery wrote: > It seems that the most obvious way would be to alter _save_FIELD_file in > django/db/models/base.py ~ line 335. > > Relatively trivial patch, you'd just need to add an accumulator to the while > loop, afaict. > > Naturally there may be horrid consequences I haven't thought o

Re: is there a way to combine generic views?

2006-12-07 Thread Terji7
Condredge wrote: > Hey Anton, > Another option is to write a wrapper view that makes use of the generic > views but adds more to it. James Bennett over at B-List wrote a very > useful article on this: > http://www.b-list.org/weblog/2006/11/16/django-tips-get-most-out-generic-views In my opinion