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

2018-02-23 Thread Kamil
The name "mark_safe" unnecessarily exposes an implementation detail. People who misunderstand this API probably have no idea how this "marking" happens, it would make sense to name this after the *effect* it achieves: "don't process / escape me, I've been sanitized somewhere else". Any of these

Re: Why doesn't ModelChoiceField.queryset support slicing?

2014-11-06 Thread Kamil Śliwak
Sorry, for a late reply. Personally I don't feel that it's a particularly common need, but I can see > your use case. More common is that a reasonable filter is applicable - say > books with a rating over 80. > Yeah, I thought about using some other filter but it's a bit harder to control the

Re: Why doesn't ModelChoiceField.queryset support slicing?

2014-11-07 Thread Kamil Śliwak
> > However, I don't think this is subject to the kind of problem you describe > as the inner queryset should be turned into a subquery of the main queryset. Yes, I can confirm that I used this solution and it returns a QuerySet. It does not perform query at module load time in my case. It's

Proposal: OpenLayers.js and shipping it in django.contrib.gis statics

2013-05-26 Thread Kamil Gałuszka
documented in docs. If there isn't any problem with that approach I'm ready to implement this. Cheers, Kamil Gałuszka -- You received this message because you are subscribed to the Google Groups "Django developers" group. To unsubscribe from this group and stop receiving e

Re: Proposal: OpenLayers.js and shipping it in django.contrib.gis statics

2013-06-01 Thread Kamil Gałuszka
Hi, Thanks for explanation. I think your reasoning make sense. Cheers Kamil Gałuszka On Monday, May 27, 2013 10:48:35 AM UTC+2, Claude Paroz wrote: > > > > Le lundi 27 mai 2013 07:38:54 UTC+2, Carl Meyer a écrit : >> >> Hi Kamil, >> >> On 05/26/2013 05:3

mod_python support

2013-11-25 Thread Kamil Gałuszka
python.org/live/current/doc-html/handlers.html#wsgi-handler New version was released 13 November http://modpython.org/. I think someone started refactoring old mod_python and moved project to github. Cheers Kamil Gałuszka -- You received this message because you are subscribed to the Google

Re: mod_python support

2013-11-25 Thread Kamil Gałuszka
I understand that and I agree that it maybe doesn't have any uptake. But, my reason for sending that information was question from today on django-users about mod_python support on Django. https://groups.google.com/forum/#!topic/django-users/449r3gUsN54 Cheers, Kamil Gałuszka 2013/11/25

Re: Proposal: Write unit tests for JavaScript

2014-04-22 Thread Kamil Gałuszka
iting UnitTest for that? Cheers Kamil Gałuszka On Saturday, April 19, 2014 1:50:19 PM UTC+2, Jannis Leidel wrote: > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hi Trey, all, > > I know we shortly talked about that at PyCon but I forgot to mention > that a whi

Why doesn't ModelChoiceField.queryset support slicing?

2014-10-21 Thread Kamil Śliwak
Hi I have just stumbled upon a problem with how ModelChoiceField handles its 'queryset' argument and I'd like to ask whether it's a deliberate design choice or if I should report it as a bug. Let's say you have a model called Book: class Book(models.Model): rating = models.Integer

#29433 New split template filter

2018-05-29 Thread Kamil Pluciński
Hi guys, What do you think about new filter for splitting strings in templates? We need opinion for ticket: https://code.djangoproject.com/ticket/29433 -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To un