Ticket 28087: Allow filtering and ordering with RawQuerySet

2017-04-20 Thread Dmitriy Sintsov
Hi! I implemented FilteredRawQuerySet which supports filter() and order_by() like model manager QuerySet. https://code.djangoproject.com/ticket/28087 https://github.com/Dmitri-Sintsov/django-jinja-knockout/blob/master/django_jinja_knockout/query.py Internally it contains RawQuerySet and

Re: Ticket 28087: Allow filtering and ordering with RawQuerySet

2017-04-21 Thread Dmitriy Sintsov
make it cover even more of SQL's capabilities. > > On 20 April 2017 at 20:36, Dmitriy Sintsov <quest...@gmail.com > > wrote: > >> Hi! >> I implemented FilteredRawQuerySet which supports filter() and order_by() >> like model manager QuerySet. >> >> ht

Re: Ticket 28087: Allow filtering and ordering with RawQuerySet

2017-04-21 Thread Dmitriy Sintsov
achieved with select_related > <https://docs.djangoproject.com/en/1.11/ref/models/querysets/#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 >>

Re: Ticket 28087: Allow filtering and ordering with RawQuerySet

2017-04-21 Thread Dmitriy Sintsov
mitriv, > > 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 > > Ian > > On 21/04/17 19:41, Dmitriy Sints

Re: Ticket 28087: Allow filtering and ordering with RawQuerySet

2017-04-21 Thread Dmitriy Sintsov
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

Re: Ticket 28087: Allow filtering and ordering with RawQuerySet

2017-04-21 Thread Dmitriy Sintsov
вывода') 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

Re: Ticket 28087: Allow filtering and ordering with RawQuerySet

2017-04-21 Thread Dmitriy Sintsov
sp_user_profile"."education", "isp_user_profile"."resume", "isp_user_profile"."rating", "isp_user_profile"."rating_reason", "isp_user_profile"."accepted_license_id" FROM "isp_finances_profilere

Re: Admin and CSS Custom Properties

2017-04-29 Thread Dmitriy Sintsov
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 MediaWiki

Re: Improving MSSQL and Azure SQL support on Django

2017-04-29 Thread Dmitriy Sintsov
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. On

Re: Digest for django-developers@googlegroups.com - 1 update in 1 topic

2017-10-20 Thread Dmitriy Sintsov
If you want to populate the data after migration is complete, several times or each time, you may try to use post_migrate signal: https://docs.djangoproject.com/en/1.11/ref/signals/#post-migrate On Fri, Oct 20, 2017 at 6:44 AM, wrote: >

Re: DEP Pre-posal: Re-Designing Django Forms

2018-02-05 Thread Dmitriy Sintsov
Hi. 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 Django models

Re: GSoC 2018

2018-03-17 Thread Dmitriy Sintsov
Hi! 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 re-implement

Re: GSoC 2018

2018-03-17 Thread Dmitriy Sintsov
. Dmitriy On Sat, Mar 17, 2018 at 12:12 PM, Manasvi Saxena <msmana...@gmail.com> wrote: > Hello sir, > > > On Saturday, March 17, 2018 at 2:07:03 PM UTC+5:30, Dmitriy Sintsov wrote: >> >> Hi! >> >> Template languages are my favorite topic in programming. &g

Re: Automatically initialise the project as git repo

2019-01-26 Thread Dmitriy Sintsov
On Friday, January 25, 2019 at 3:35:40 PM UTC+3, mihir karbelkar wrote: > > Hi, > 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

Re: Help for GSoC proposal (Formset improvements)

2019-03-27 Thread Dmitriy Sintsov
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 >

Re: Extend FAQ with "How do I get Django and my JS framework to work together?"

2019-02-06 Thread Dmitriy Sintsov
Speaking of Rails AJAX forms. It's quite trivial to submit Django ModelForm in Javascript AJAX request. It's a bit harder to have the customizable success action and to display the field validation errors via AJAX response. I implemented AJAX viewmodels for that:

Re: Extend FAQ with "How do I get Django and my JS framework to work together?"

2019-02-09 Thread Dmitriy Sintsov
Very nice tuturials! Although there is web components standard gradually being adapted by major browsers, which should bring custom tags / components not having to use the third party Javascript libraries like Vue or React. So, while in Python world the leadership of Django is quite stable and

Re: Proposal to format Django using black

2019-04-15 Thread Dmitriy Sintsov
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 escaping.