Re: CSRF token still needed today?

2020-04-21 Thread Kenny Loveall
The original blog post you posted seems to answer this question. Further it states "It's going to be a long time until we can consider removing traditional anti-CSRF mechanisms but adding SameSite on top of those gives us an incredibly robust defence." Like most things in security, I think this is

Re: Is it possible to value based on another aggregation?

2019-04-23 Thread Kenny Loveall
n Tue, Apr 23, 2019 at 2:13 PM Matthew Pava wrote: > Use annotate. > > > https://docs.djangoproject.com/en/2.2/topics/db/aggregation/#generating-aggregates-for-each-item-in-a-queryset > > > > > > > > > > *From:* django-users@googlegroups.com [mailto: > dj

Is it possible to value based on another aggregation?

2019-04-23 Thread Kenny Loveall
Hi everyone, I'm trying to figure out if it's possible to get a value for one field based on the aggregation of another? Specifically, I've got a model with a created_at timestamp, a foreign key, and a created_by user foreign key. I want to group the objects based on the foreign key and get the ti