Re: Feature suggestion: auto translate verbose names

2011-01-14 Thread Sergiy Kuzmenko
It sounds like the concern here are repetitive and untidy lines with lots of "verbose_name" so use of positional arguments may prettify a bit field definitions. It is not obvious from documentation (all fields are listed alphabetically) but for all except relationship fields verbose_name is the fir

Various small issues

2011-01-14 Thread Klaas van Schelven
Hi all, I've been looking into a few old unresolved issues. http://code.djangoproject.com/ticket/11667 "Full traceback if import error before model validation" is a simple annoyance. On the issue page (one year old) various solutions are suggested, each with a patch. Can someone take a decision o

Re: Small decision needed on #15025

2011-01-14 Thread Łukasz Rekucki
On 14 January 2011 16:22, Marco Paolini wrote: > > then maybe a new special attribute like "dont_call_me" or > "i_will_call_you_if_needed" (way more polite) > > could be handy in this situations? What do you think? I think it's too much of a corner case to justify another check in lookup. When I

Re: Small decision needed on #15025

2011-01-14 Thread Marco Paolini
bpeschier ha scritto: what if you add an alters_data class attribute to your ModelForm subclass? class MyForm(ModelForm): alters_data = True this way __call__ is not going to get called... No, but it will be replaced with settings.TEMPLATE_STRING_IF_INVALID. See: http://code.djan

Re: Small decision needed on #15025

2011-01-14 Thread bpeschier
> what if you add an alters_data class attribute to your ModelForm subclass? > class MyForm(ModelForm): >  alters_data = True >   > > this way __call__ is not going to get called... No, but it will be replaced with settings.TEMPLATE_STRING_IF_INVALID. See: http://code.djangoproject.com/brows

Re: Small decision needed on #15025

2011-01-14 Thread Marco Paolini
bpeschier ha scritto: I am agreeing with the changes as made in [14992] as they make things more consistent. The snag I run into was a flexible filter for making ModelForm-instances which took a form-class as an argument via a Variable. Since classes are callable (their constructor), suddenly I h

Re: TemplateResponse, url tag and custom urlconf

2011-01-14 Thread Russell Keith-Magee
On Fri, Jan 14, 2011 at 10:28 PM, Sayane wrote: > There is a problem with TemplateResponse and request.urlconf. Custom urlconf > is removed[1] before TemplateResponse is rendered[2]. This means that any > call to reverse() when rendering template will use default urlconf (from > settings). This ma

Re: Feature suggestion: auto translate verbose names

2011-01-14 Thread Russell Keith-Magee
On Fri, Jan 14, 2011 at 10:00 PM, Klaas van Schelven wrote: > Hi, > > A lot of my models look like this > > class MyModel(models.Model): >    some_field = models.IntegerField(verbose_name=_("Some field")) >    some_other_field = models.IntegerField(verbose_name=_("Some other > field")) > >    clas

TemplateResponse, url tag and custom urlconf

2011-01-14 Thread Sayane
There is a problem with TemplateResponse and request.urlconf. Custom urlconf is removed[1] before TemplateResponse is rendered[2]. This means that any call to reverse() when rendering template will use default urlconf (from settings). This makes TemplateResponse useless when using custom urlconf.

Re: Small decision needed on #15025

2011-01-14 Thread bpeschier
I am agreeing with the changes as made in [14992] as they make things more consistent. The snag I run into was a flexible filter for making ModelForm-instances which took a form-class as an argument via a Variable. Since classes are callable (their constructor), suddenly I had a bunch of instances

Feature suggestion: auto translate verbose names

2011-01-14 Thread Klaas van Schelven
Hi, A lot of my models look like this class MyModel(models.Model): some_field = models.IntegerField(verbose_name=_("Some field")) some_other_field = models.IntegerField(verbose_name=_("Some other field")) class Meta: verbose_name = _("My model") verbose_name_plural =

Re: Fixing a regression in FormWizard from #14498 in 1.2.X and 1.3

2011-01-14 Thread Łukasz Rekucki
On 14 January 2011 13:17, Stas Malolepszy wrote: > On Friday, January 14, 2011 3:25:18 AM UTC+1, Russell Keith-Magee wrote: >> >> Ticket #15075 was opened to cover the regression you describe; Luke >> closed that ticket by committing r15196 and r15197. >> >> Its not clear to me if Luke has done th

Re: Fixing a regression in FormWizard from #14498 in 1.2.X and 1.3

2011-01-14 Thread Stas Malolepszy
On Friday, January 14, 2011 3:25:18 AM UTC+1, Russell Keith-Magee wrote: > Ticket #15075 was opened to cover the regression you describe; Luke > closed that ticket by committing r15196 and r15197. > > Its not clear to me if Luke has done this in response to your email, > or if it's just coincidenc