Signals - Need a signal after annotations are added

2019-02-23 Thread Mike Brown
I have a situation where I need a signal for when a model object is fully instantiated. Currently, there are signals for pre_init and post_init. However, when post_init is fired, the object is not fully 'initialized' in the sense that annotations have not yet been added to the object. In dja

Proposal for a new template tag to disable invoking callable variables

2019-02-23 Thread Alex Epshteyn
I recently posted #30205 , which proposes a new template tag to solve a template problem that has been bothering me (see #30197 ). Requesting feedback from the community regarding both of these tickets. If

Re: Use CDN for djangoproject.com

2019-02-23 Thread Tobias McNulty
Hi all, An implementation question has come up regarding cache lifetime (see this PR ). Right now, the whole site (including docs) has the site-wide Django cache enabled

Re: Use CDN for djangoproject.com

2019-02-23 Thread Tom Forbes
Which CDN are we going to use? Fastly has awesome sub 100ms global invalidation which we can trigger on every deploy, and cloudflare has something similar. On Sun, 24 Feb 2019, 00:00 Tobias McNulty, wrote: > Hi all, > > An implementation question has come up regarding cache lifetime (see this >

Re: Use CDN for djangoproject.com

2019-02-23 Thread Tom Forbes
Sorry, I did not completely grok your message. I would be in favour of just invalidating the whole cache if needed, it seems the simplest solution. Invalidating most of the cache on every non-dev deploy would also be OK I think. On Sun, 24 Feb 2019, 00:10 Tom Forbes, wrote: > Which CDN are we go

Re: Fellow Reports - February 2019

2019-02-23 Thread Tim Graham
Week ending February 23, 2019 I took a break for most of this week. Reviewed/committed -- https://github.com/django/django/pull/10995 - Refs #19544 -- Ignored auto-created through additions conflicts if supported. https://github.com/django/django/pull/10999 - Fixed #30141 --

Re: Proposal for a new template tag to disable invoking callable variables

2019-02-23 Thread Alex Epshteyn
The reason for this suggestion is over the years, while writing templates, I've had to spend a lot of time trying to figure out why I was getting an unexpected value (often an empty string) substituted for a template variable when that variable clearly had a different value. The reason that h

Re: Signals - Need a signal after annotations are added

2019-02-23 Thread Philip James
Hi! I think I'm misunderstanding what you're asking for. I've looked at every doc I can find on annotations to refresh my memory, and it looks like annotations only apply to query sets, not to objects? Could you say a bit more about your use case to help me grok what's going on? Thanks, Philip PJ

Re: Signals - Need a signal after annotations are added

2019-02-23 Thread James Bennett
On Sat, Feb 23, 2019 at 9:48 PM Philip James wrote: > Hi! I think I'm misunderstanding what you're asking for. I've looked at > every doc I can find on annotations to refresh my memory, and it looks like > annotations only apply to query sets, not to objects? Could you say a bit > more about your

Re: Signals - Need a signal after annotations are added

2019-02-23 Thread Mike Brown
> > I think this is a request for a signal that fires after those attributes > have been added to the model instances. > Yes. On Saturday, February 23, 2019 at 12:08:43 PM UTC-8, Mike Brown wrote: > > I have a situation where I need a signal for when a model object is fully > instantiated.