Re: Issues and Improvements to the The Django Administration

2020-12-16 Thread Carles Pina i Estany
Hi, On Dec/16/2020, Muskan Vaswan wrote: > Carles Pina I Estany: While I understand what you’re trying to do I > don’t know why we are trying to avoid COUNT is there a best practice > associated with this that I don’t know about? We are (or... I was :-) ) trying to answer this qu

Re: Issues and Improvements to the The Django Administration

2020-12-15 Thread Carles Pina i Estany
other way that I haven't thought now :-) Cheers, -- Carles Pina i Estany https://carles.pina.cat -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To unsubscribe from this group an

Re: Adding a security concerned feature

2020-11-18 Thread Carles Pina i Estany
sites I would say > it's not. > On Wednesday, November 18, 2020 at 7:33:47 AM UTC-5 Carles Pina Estany > wrote: > > > > > Hi, > > > > On Nov/16/2020, Carles Pina i Estany wrote: > > > > > Either way: I'd be happy to write a django ch

Re: Adding a security concerned feature

2020-11-18 Thread Carles Pina i Estany
Hi, On Nov/16/2020, Carles Pina i Estany wrote: > Either way: I'd be happy to write a django check to make sure that > 'admin/' is not routed to admin. Regarding this check: this morning I've done a very preliminary/for fun draft to play with. https://gith

Re: Adding a security concerned feature

2020-11-16 Thread Carles Pina i Estany
medium=email&utm_source=footer> > > . > > > > > -- > Adam > > -- > You received this message because you are subscribed to the Google Groups > "Django developers (Contributions to Django itself)" group. > To unsubscribe from this group and s

Re: Should a queryset avoid using a pk of a deleted object?

2020-11-08 Thread Carles Pina i Estany
> > class Author(models.Model): > > name = models.TextField(max_length=64) > > > > def __str__(self): > > return self.name > > > > > > class Book(models.Model): > > title = models.TextField(max_length=128) > > authors = models.ManyToManyFiel

Should a queryset avoid using a pk of a deleted object?

2020-11-04 Thread Carles Pina i Estany
.Model): title = models.TextField(max_length=128) authors = models.ManyToManyField(Author) def __str__(self): return self.title ``` -- Carles Pina i Estany https://carles.pina.cat -- You received this message because you are subscribed to the Google Groups "Django develo

Re: Help needed to fix hundreds of failing tests

2020-10-10 Thread Carles Pina i Estany
f this happens often or not). Or, did I take the wrong side of the stick and you intended the fix to be different? Have a good weekend, -- Carles Pina i Estany https://carles.pina.cat -- You received this message because you are subscribed to the Google Groups "Django developers (Contribu

Re: Incomplete documentation or bug? (linebreaksbr and stringfilter decorated filters)

2020-09-15 Thread Carles Pina i Estany
; > > > > https://docs.djangoproject.com/en/dev/ref/templates/builtins/#default-if-none > > > > {{ text|default_if_none:""|linebreaksbr }} > > > > > > > > -----Original Message----- > > > > From: django-developers@googlegroups.com <

Incomplete documentation or bug? (linebreaksbr and stringfilter decorated filters)

2020-09-14 Thread Carles Pina i Estany
in addslashes, capfirst, etc. Should this be noted in the documentation? Or the behaviour changed? (hard without backward compatibility issues). Or have I missed anything? Any thoughts? (I've checked the Django bug tracker and I haven't seen any bug describing this) Cheers, -- C

Re: Making startproject's settings more 12-factor-y

2020-07-07 Thread Carles Pina i Estany
report.cgi?bug=960230 ). If DEBUG is set it doesn't run. If the bug wasn't there, well, it would have ran in DEBUG mode probably or if Django named it DJANGO_DEBUG it would have not affected Thunderbird. I thought of prefixing variables when possible to avoid these interactions. Chee

Re: calling self.errors in a form in a formset breaks deletion

2020-06-19 Thread Carles Pina i Estany
't end up in > > self.clean_fields (because it's not in self.fields). When DELETE is > > added as a field self.clean_fields is not updated. > > > > (I'm talking about this: > > https://github.com/django/django/blob/master/django/forms/formsets.py#L390

calling self.errors in a form in a formset breaks deletion

2020-06-19 Thread Carles Pina i Estany
out this: https://github.com/django/django/blob/master/django/forms/formsets.py#L390 being executed too late; or self.errors being called too early) The full story is here: https://groups.google.com/forum/#!topic/django-users/wO9H0cNcLfI Thank you very much, -- Carles Pina i Estany https://car