Re: Standalon Django ORM

2022-12-13 Thread Vasanth Mohan
I second Jörg about better maintainability with tighter integrations. However, for the fun of stirring the pot, what's the opinion on letting Django define an API for the ORM and letting a library deal with the DB-specific implementation that generates the SQL for query? Django could have a

Re: Switch to a dropdown widget for ListFilter on admin

2022-11-04 Thread Vasanth Mohan
le filters and apply the filters with a single request. Cordialement, Vasanth MOHAN On Fri, 4 Nov 2022 at 06:03, David Sanders wrote: > Hi Vasanth, > > What advantages does a dropdown have over simply placing the options there > though? Typically these sorts of things have ho

Switch to a dropdown widget for ListFilter on admin

2022-11-03 Thread Vasanth Mohan
Hello, When there are multiple filters on a model, the filter sidebar gets cluttered quite rapidly. Is there a specfic reason, we list the options over a dropdown? I'd like to see if there is support to change the default filter widget to dropdown? I'd like to reiterate, this merely replaces

Re: Creating internal/admin pages without Models

2022-10-26 Thread Vasanth Mohan
rested to know if it would be possible to reuse the admin widgets like ListView Table with its filters, search etc on a custom view. Thanks, Vasanth MOHAN On Tue, 25 Oct 2022 at 21:40, Carlton Gibson wrote: > Check out Django-admin-views > > https://github.com/frankwiles/django-admin-vi

Re: Creating internal/admin pages without Models

2022-10-25 Thread Vasanth Mohan
ough is most cases. Being able to leverage admin widgets would improve task turnaround time and reduce frontend work to only client-facing logic. Vasanth MOHAN On Tue, 25 Oct 2022 at 14:10, Igor Margitich wrote: > Hi Vasanth, > > Can you ptovide an example when do you need generic admin

Creating internal/admin pages without Models

2022-10-25 Thread Vasanth Mohan
Hello, I'd like to gauge the general opinion of more experienced devs before starting on a project. I personally love the sheer flexibility that the django admin provides me to get started on the DB and manage the backend. I can add actions, filters and charts with just a few third-party

Re: Adding Support for DB Views

2022-02-23 Thread Vasanth Mohan
ntly, I just use the migrations to do a RunSQL and then I make a > model with the Meta option managed set appropriately. It works for me, but > perhaps something a bit more convenient is in order these days. > > > > *From:* django-d...@googlegroups.com *On > Behalf Of *Vasan

Adding Support for DB Views

2022-02-21 Thread Vasanth Mohan
Are there any plans to support DB Views ? Would the team be interested in mainlining it if there is a PR for it ? I tend to use DB Views on Postgres at my day job and wouldn't mind adding basic support across Django's supported DBs. I'll probably take inspiration from Knex.js

Re: Developing an SPA version of Django admin

2021-10-16 Thread Vasanth Mohan
Hi Warren, An SPA sound interesting but should be based on React or other SPA frameworks? While I’ve not looked into it very much Webcomponents are part of the Spec since 2012. Vanilla JS can be leveraged to create the admin and the project developers can choose to extend it with the framework

Autocomplete Foreign Keys by default in Admin

2021-10-09 Thread Vasanth Mohan
The admin page for any object becomes ridiculously slow (upto 10s) when the object and its multiple inlines have foreign keys. The latency just disappears after i added autocomplete for each one manually. Is there any reason why foreign keys are not autocomplete by default ? Will the devs be

Custom Ordering and Grouping of Models in Django Admin

2021-09-16 Thread Vasanth Mohan
As the numbers Models in an app grows, it becomes tedious to find the model we are searching for in a long list on the index page (and navigation bar) of the Django admin As a part of a new project, I wanted to reorder and logically group models that do not necessarily reflect the apps of the