Re: Consider allowing customization of ModelForm's init parameters in contrib.admin

2014-01-15 Thread Loic Bistuer
On Jan 16, 2014, at 8:02 AM, Russell Keith-Magee wrote: > Is there some reason that you can't use get_form() for this? It would seem to > be exactly what you are looking for - a way to control the instantiation of > forms, used by both add_view and change_view. ModelAdmin.get_form() is a bit

Re: Consider allowing customization of ModelForm's init parameters in contrib.admin

2014-01-15 Thread Russell Keith-Magee
Is there some reason that you can't use get_form() for this? It would seem to be exactly what you are looking for - a way to control the instantiation of forms, used by both add_view and change_view. Yours, Russ Magee %-) On Thu, Jan 16, 2014 at 3:22 AM, tyrion-mx wrote: > I'd like to be able t

Re: Thoughts on defining and autoimporting signals.py

2014-01-15 Thread Aymeric Augustin
On 15 janv. 2014, at 15:01, Ihor Kaharlichenko wrote: > It's already 1.6 now, are there any news regarding this issue? It’s fixed in 1.7. Search for “app-loading” in the archives of this list. > From what I see the aren't any updates in signals docs. Look again: https://github.com/django/djang

Consider allowing customization of ModelForm's init parameters in contrib.admin

2014-01-15 Thread tyrion-mx
I'd like to be able to customize the parameters that gets passed to the form used in all the views of the ModelAdmin. It seems that there is currently no way to do it. A very common scenario in which this could be useful is to provide a default value for an author/user field of a model. For exam

Re: Should exceptions in dev server appear as tracebacks in the console by default?

2014-01-15 Thread Harry Percival
so, just to rephrase this, to help think about how the docs could be improved. If I understand things correctly: *with the default settings, the only circumstances in which a logging message would end up in the console is outside of normal django request handling, for example in a management comma

Re: Thoughts on defining and autoimporting signals.py

2014-01-15 Thread Ihor Kaharlichenko
Hi. > The bad news is that the patch has been languishing in need of review > for a while. At this point, it almost certainly won't make 1.4; if it > can get some attention, it would be a welcome addition to 1.5. > It's already 1.6 now, are there any news regarding this issue? From what I see the

Re: Feature request: serve_file() view in static app

2014-01-15 Thread Andre Terra
Use nginx? http://nginx.org/en/ Cheers, AT On Tue, Jan 14, 2014 at 6:18 PM, Rivo Laks wrote: > Hm, indeed. > > Is there any better alternative or best practice for my usecase though? > Basically I want a view that responds with contents of a static file and > django.views.static.serve() does

Re: Improving aggregate support (#14030)

2014-01-15 Thread Josh Smeaton
Quick update. GIS support is nearly done, I just have two failing tests to take care of (one to do with lookups setting srid, and another that is producing the wrong value). I have a few validation checks to make inside prepare, and then it's on to writing tests that make use of aggregates and