Re: default values on database level

2016-02-07 Thread Podrigal, Aron
Hi Owais, I did not have the time to start any work on this. I'm very much interested in this and I'd be happy to contribute to this in any way. I'm following along on the other thread you started [1]. [1]

Re: [Review Request] Added support for database delegated fields (like AutoField)

2016-02-07 Thread Podrigal, Aron
Like it has been discussed a while ago [1] about adding *db_default*, we should stick with something similar to that and support updates as well. My 2 cents here. I like the idea Anssi has proposed to delegate as much as possible using expressions. So I would propose similar to what discussed in

Re: #25897 - managers defined on non-abstract base classes inherited by child classes

2016-02-07 Thread Shai Berger
On Sunday 07 February 2016 19:47:48 Alex Poleha wrote: > I apply my condition to default managers indeed and I see no problem here. > Default manager is just first manager defined on class(or on it's non > concrete base). It has no additional magic. > Well, I was using wrong terminology, sorry;

Admin hstore widget

2016-02-07 Thread Curtis Maloney
So, I've been working on https://code.djangoproject.com/ticket/25197 I have it as part of my own project, with a view to contributing to core once it's polished. Currently it has basic functionality - a JS widget that fires on load, hides the textarea, and produces a table of (name, value,

Re: #25897 - managers defined on non-abstract base classes inherited by child classes

2016-02-07 Thread Shai Berger
Reading your description again, it seems like you apply the condition to default managers as well. Default managers are not "specific to the class they are defined on", and I see no problem in their inheritance. In particular: class BaseComment(models.Model): ... some

Re: Fellow Report - February 6, 2016

2016-02-07 Thread Federico Capoano
Great work! On Saturday, February 6, 2016 at 4:27:42 PM UTC+1, Tim Graham wrote: > > Triaged > > --- > > https://code.djangoproject.com/ticket/26162 - Data loss when > ManyToManyField refers to the wrong table (accepted) > > https://code.djangoproject.com/ticket/26168 - BooleanField is

Re: Index expressions

2016-02-07 Thread Josh Smeaton
There are many places that expressions can extend to, and I think indexes would make a really good candidate. There are a few things that need to happen to make this work though. - create meta.indexes to store { index_name: IndexType('field') } - internally translate any db_index=True to the