I implemented FilteredRawQuerySet which supports filter() and order_by()
like model manager QuerySet.
Internally it contains RawQuerySet and
make it cover even more of SQL's capabilities.
> On 20 April 2017 at 20:36, Dmitriy Sintsov <quest...@gmail.com
> > wrote:
>> I implemented FilteredRawQuerySet which supports filter() and order_by()
>> like model manager QuerySet.
achieved with select_related
> On 21 April 2017 at 09:47, Dmitriy Sintsov <quest...@gmail.com
> > wrote:
>> I know that it does not work in the general case, but still having
> I think you're running into https://code.djangoproject.com/ticket/27332.
> Unfortunately this isn't fixed yet, but there's a pull request, so it
> might land in 2.0: https://github.com/django/django/pull/7560
> On 21/04/17 19:41, Dmitriy Sints
erySet, please close my ticket.
> On 21/04/17 19:41, Dmitriy Sintsov wrote:
> > If I understand correctly, LEFT JOIN is automatically chosen when
> > ForeignKey(null=True) otherwise it will be INNER JOIN?
> > My ProfileRequisites.profile ForeignKey is not nullable
On Friday, April 21, 2017 at 7:55:31 PM UTC+3, Adam Johnson wrote:
> It depends upon whether the foreignkey/onetoonefield is nullable.
> On 21 April 2017 at 17:16, Dmitriy Sintsov <quest...@gmail.com
> > wrote:
>> How can I chose whether select_related
CSS variables are long time available at server-side via LESS / SASS
compilers. For example MediaWiki has built-in ResourceLoader that includes
LESS compiler and JS minifier. It uses caching to re-compile only when
source .less or .js are changed. Everything works even with IE8. But
Microsoft probably will take Django support to the next level with Windows
Subsystem for Linux. It's still beta but a very promising one. Not only it
should make compiling Python module binaries (like lxml) much easier, it
also fixes binary / nix specific support of node.js / Ruby packages.
If you want to populate the data after migration is complete, several times
or each time, you may try to use post_migrate signal:
On Fri, Oct 20, 2017 at 6:44 AM, wrote:
Client-side implementation of fields visual behavior and their validation
should be hooked up via document.ready custom JS scripts via form ID or
form class. There is no universal solution for that.
When using pure client-side forms from npm, it is possible to map these to
Template languages are my favorite topic in programming.
If you implement html library yourself, it is much better to define tags
not as functions but as classes with base Tag class which has properties
for tag name, attributes and the nested list of tags. Such way you will
On Sat, Mar 17, 2018 at 12:12 PM, Manasvi Saxena <msmana...@gmail.com>
> Hello sir,
> On Saturday, March 17, 2018 at 2:07:03 PM UTC+5:30, Dmitriy Sintsov wrote:
>> Template languages are my favorite topic in programming.
On Friday, January 25, 2019 at 3:35:40 PM UTC+3, mihir karbelkar wrote:
> I have made several projects with Django but every time I create a new
> project I have to initialize the repo for git. It would be better if the
> project initialized itself. Maybe we can add this feature in to
It would be nice to have paginated formsets when there are lots of one to
many relationships in the inline form, otherwise such rendered formset is
slow and huge.
On Tuesday, March 26, 2019 at 8:56:56 PM UTC+3, PARTH PATIL wrote:
> I was planning to do the "Formset Improvements
Speaking of Rails AJAX forms. It's quite trivial to submit Django ModelForm
success action and to display the field validation errors via AJAX response.
I implemented AJAX viewmodels for that:
Very nice tuturials! Although there is web components standard gradually
being adapted by major browsers, which should bring custom tags /
or React. So, while in Python world the leadership of Django is quite
Why can't it use mixed quotes, single quotes for all strings except the
strings that contain single quote characters? I think mixed syntax of
strings is made in various programming languages so both single and double
quotes can be used inside strings not having to use ugly backslash
Mail list logo