Re: models.CalculatedField feature

2017-11-17 Thread Mariusz Felisiak
Some databases such as Oracle [1] or MySQL [2] support virtual (generated) columns based on expressions. IMO it will be great (and should be quite straightforward) to add them to Django. We can take this approach into account. Mariusz [1] https://oracle-base.com/articles/11g/virtual-columns-11

Re: Additional PostgreSQL-specific functions

2017-11-17 Thread Joey Wilhelm
I did come upon that ticket, but I wasn't sure this necessarily belonged as part of it, given that these are not methods which are widely available across different engines. That said, I would gladly add them there. I'm just eager to spin up a PR or two. :-) On Fri, Nov 17, 2017 at 1:12 PM, Matthe

RE: Additional PostgreSQL-specific functions

2017-11-17 Thread Matthew Pava
I wonder if we should put that in this ticket: https://code.djangoproject.com/ticket/28643 From: django-developers@googlegroups.com [mailto:django-developers@googlegroups.com] On Behalf Of Joey Wilhelm Sent: Friday, November 17, 2017 2:02 PM To: django-developers@googlegroups.com Subject: Additi

Additional PostgreSQL-specific functions

2017-11-17 Thread Joey Wilhelm
Greetings, Yesterday I opened a ticket[1] for a "RegexpReplace" method for PostgreSQL. After some talk and encouragement over in IRC, I have additionally created a "SubstrFrom" function for PostgreSQL, which allows you to use a regex match in order to extract your substring. So at this point, I h

Re: ManytoMany Relation and Custom widget in Django

2017-11-17 Thread Shai Berger
On Friday 17 November 2017 15:53:10 sevenrrain...@gmail.com wrote: > I’m sorry, desperate move, because I couldn’t find any proper channel for > this. > > > Can you guide me to a proper channel that can answer my question, besides > the ones above. > If you cannot find an answer on the public c

Using server side cursors for values and values_list

2017-11-17 Thread Dražen Odobašić
Hi, at the moment `chunked_fetch` (server side cursors) are only initialized for ModelIterable class. Is there any reason why we should not do the same for other BaseIterable classes (ValuesIterable, ValuesListIterable and FlatValuesListIterable). The idea is that you could then use QuerySet.valu

Re: ManytoMany Relation and Custom widget in Django

2017-11-17 Thread sevenrrainbow
I’m sorry, desperate move, because I couldn’t find any proper channel for this. Can you guide me to a proper channel that can answer my question, besides the ones above. Thank you. On Friday, November 17, 2017 at 3:05:32 PM UTC+2, Tim Graham wrote: > > Please don't abuse this mailing li

Re: ManytoMany Relation and Custom widget in Django

2017-11-17 Thread Tim Graham
Please don't abuse this mailing list as an "advance support channel". On Friday, November 17, 2017 at 7:34:48 AM UTC-5, sevenr...@gmail.com wrote: > > Hello, > > First, I apologize for posting on Django Developers but I asked on Django > Users, Django IRC, stackoverflow (in multiple ways/times) a

ManytoMany Relation and Custom widget in Django

2017-11-17 Thread sevenrrainbow
Hello, First, I apologize for posting on Django Developers but I asked on Django Users, Django IRC, stackoverflow (in multiple ways/times) and I'm blocked for more than 2 weeks. I think the question, is too advanced for the other forums/groups and hope someone here can help me. I have two

Re: How Django inlineformsets works internally

2017-11-17 Thread sevenrrainbow
Hi Matthew, Unfortunately is not what I'm looking for. Actually I build something similar in the past. In dynamic inlineformset I just clone and/or remove some DOM elements and update management attributes and Django do everything behind. In my case I have a ManyToMany to a self ForeignKey