Re: Fate of sql* management commands

2015-03-31 Thread Joachim Jablon
(could even be dependant on the meteo, or random variables or anything)... And given that you can (as the doc says) use the scheme editor inside a RunPython migration, who knows what the proper SQL would be ? (again, I may be missing a point there) -- Joachim Jablon Le lundi 30 mars 2015

Re: Feature: URL template tag, optional parameters

2015-06-18 Thread Joachim Jablon
But what if we need to distinguish between "" and None ? E.g. : url(r'^blog/page/(?P\d+)/$', views.page, name='view-page'), url(r'^blog/page/(?P\d+)/subpage(?P.*)/$', views.page, name ='view-page'), So that makes : reverse("view-page", page_pk=12) == "blog/page/12/" reverse("view-page", kwargs={

Re: Add an optional parameter to values() that returns a nested dictionary for foreign keys

2015-11-25 Thread Joachim Jablon
Marten's suggestion is quite interesting for providing a way to tell which data you want nested and which data you don't. Plus, this form might be interesting to solve another problem : how would Django know if we want : {"id": 1 "first_name": "first name", "last_name": "last name", "hometown

Re: Stop QuerySet repr from executing queries

2021-03-23 Thread Joachim Jablon
Just been bitten by that same bug (combination of Sentry, using a Queryset.as_manager() that creates an unfiltered queryset as a local variable in the stack, a create signal that errored provoking a stacktrace that contained the queryset, a table that is always filtered by a field, and sorted b

Docs and search : Split the results by category

2016-01-04 Thread Joachim Jablon
Hello, (not sure the question should be asked there or as a ticket of djangoproject.com) Seing this answer by Daniele Procida explaining how docs are organized made me realize that often, when searching for so

Re: New deferred loading implementation (Was: [Review Request] Added support for database delegated fields (like AutoField))

2016-11-07 Thread Joachim Jablon
ub comment so it's probably clearer My own personal opinion: 1. refesh by default, add an argument to "model_instance.save()" to opt-out. 2. readonly Le samedi 5 novembre 2016 16:17:31 UTC+1, Ben Cole a écrit : > > As discussed with many core team members (Simon Charette, Josh S

Re: New deferred loading implementation (Was: [Review Request] Added support for database delegated fields (like AutoField))

2016-11-08 Thread Joachim Jablon
sh ? Le lundi 7 novembre 2016 15:35:38 UTC+1, Aymeric Augustin a écrit : > > On 7 Nov 2016, at 13:44, Joachim Jablon > > wrote: > > > My own personal opinion: 1. refesh by default, add an argument to > "model_instance.save()" to opt-out. 2. readonly > >

Re: Consider reverting or adding guidelines on how to use class based views for security sensitive features

2016-11-23 Thread Joachim Jablon
I'm +1 with Baptiste, Ben, Josh and João. Also, Luke, you said : > 1. Recognise that CBVs are much harder to reason about, and therefore > require much more care. 2. Avoid using CBVs unless you really need them. > Just wanted to note that this means never. FBV vs CBV is a choice, there's re