Behavior of ModelAdmin.fieldsets with 'classes': ('collapse',) when fieldset name is None.

2018-01-28 Thread Douglas Miranda
Hello, I don't know if this was debated before, but I think the behavior of Collapsed fieldsets on Django Admin could confuse some devs. Here is the example: Consider the django.contrib.auth.

Re: Ticket #29066

2018-01-28 Thread Adam Johnson
It's generally best to leave questions like this on the PR than in a separate mailing list thread. I'll answer there ( https://github.com/django/django/pull/9627 ). On 27 January 2018 at 07:02, wrote: > Hello everyone ! > > I have two queries with respect to the ticket #29066 >

Re: Add slicing notation to F expressions

2018-01-28 Thread Adam Johnson
Actually there was some further discussion in https://groups.google.com/forum/#!msg/django-developers/PsHDk1doTDg/CewZdVMJAQAJ where we settled that the slicing operator need not be implemented in the scope of that ticket. On 28 January 2018 at 17:09, wrote: > Hello ! > > There is a new feature-

Add slicing notation to F expressions

2018-01-28 Thread askpriyansh
Hello ! There is a new feature-request in ticket #29049, and some related work has been done in PR #9583 (https://github.com/django/django/pull/9583). Does this require the implementation of the slicing operator using backend functions Left, Right and Substring ? Regards Priyansh -- You rece

Consider renaming `mark_safe` to `dangerously_trust_html` (etc)

2018-01-28 Thread Stuart Cox
In my experience, misuse of mark_safe() — i.e. marking stuff safe which *isn’t* actually safe (e.g. HTML from a rich text input) — is one of the biggest causes of XSS vulnerabilities in Django projects. The docs warn to be careful, but unfortunately I think Django devs have just got too used to