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
of rows that can be encapsulated into one. I would suggest If this was done it would be nice to see something like: "Deleted 15 items" "Deleted 515 items" "Deleted more than 1000 items" (if it deleted more than 1000 if 1000 is the upper limit) So it's informative,

Re: Adding a security concerned feature

2020-11-18 Thread Carles Pina i Estany
Hi, I wasn't convinced about changing the 'admin' path until recently. My reasons to change the path of 'admin' are: -A bit less likely to be affected by bugs like https://docs.djangoproject.com/en/3.1/releases/3.0.1/#cve-2019-19844-potential-account-hijack-via-passw

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
Hi Adam, Shoury, About '/admin' URL to not be routed to admin: I can't remember if this is documented in Django documentation (I can't find it right now). But a lot of documentation on the internet says to change, in urls.py, from path('admin/') to path('a

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

2020-11-08 Thread Carles Pina i Estany
cache. > On Wednesday, November 4, 2020 at 5:51:36 AM UTC-5 Carles Pina Estany wrote: > > > > > Hi all, > > > > I have a question about Django ORM. I'd like to confirm that the current > > behaviour is expected (in a way it is!) or find/open an issue if > &g

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

2020-11-04 Thread Carles Pina i Estany
Hi all, I have a question about Django ORM. I'd like to confirm that the current behaviour is expected (in a way it is!) or find/open an issue if needeed. In this example I've defined two models (see them at the end of the email if needed): one for a Book with a ManyToMany to auth

Re: Help needed to fix hundreds of failing tests

2020-10-10 Thread Carles Pina i Estany
Hi, On Oct/10/2020, Peter Inglesby wrote: I remember reading the original thread... > I've authored PR 12417 <https://github.com/django/django/pull/12417> (Fixed > 31235 <https://code.djangoproject.com/ticket/31235> -- Updated > assertQuerysetEqual to compare que

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
Hi, Today I had a small surprise with templates and the linebreakbr filter. The "problem" (or root of the confusion) is that if None (of NoneType) is given to linebreakbr it returns a SafeString 'None' instead of None (type NoneType). The documentation says (https://docs.

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

2020-07-07 Thread Carles Pina i Estany
Hi, I haven't read all this thread in detail and I might go off-topic. Sorry about that. On Jul/07/2020, '1337 Shadow Hacker' via Django developers (Contributions to Django itself) wrote: > Do we really need DJANGO_ prefix on env vars ? In my first years of I know when

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

2020-06-19 Thread Carles Pina i Estany
my ModelForm... for what I can see though, it might have other problems!). > I'm not sure what if anything we might do about that. DRF's serializers > have all kinds of > "you have to call is_valid() before accessing .data" type assertions, but I'm not famili

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

2020-06-19 Thread Carles Pina i Estany
Hi, Yesterday I found that calling self.errors in the constructor of a Form that is in an InlineFormSet (or any formset I guess): the "delete" of a form doesn't work anymore. I wonder if this is a bug in Django (for this case, if a new bug is needed, I'm happy to open it...

Nasty Adult Group .

2008-09-10 Thread i
Feel free to join and enjoy the pics and videos. http://groups.google.com/group/sodomy-fun/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "sex story club" group. To post to this group, send email to sex-story@googl