hi all,
giving a id list in which the elements' order is important, for
example: category_id_list = [1, 4, 9, 6]
is it possible to make sure that
categorys.get_list(id__in=category_id_list) returns category object
list in the same order as category_id_list? that is, make sure the
returned list
hello hugo,
we're using your tagging code developing our site (in Chinese), while
dealing with the tags containing Chinese characters, I found that these
charaters were removed by the following line of code in the tagging.py:
[code]
tagslugs=dict([(slugify(latin1_to_ascii(el.strip())),
I notice a problem with the django's header injection prevention code.
It checks only if there's new line (\r or \n) in the header, I guess it
should be improved, since when we want to send a utf-8 header, it
reaches its limitation -
from python's email package email.Header.Header.encode()
Batiste wrote:
> Hello, I have some spam incoming in my mailbox... The send_mail
> function has to be protected ... What's wrong with my code ?
>
> def sendMail(request):
> from django.core.mail import send_mail
> if(request.POST.has_key('email')):
> email = request.POST['email']
wOW!
I get it done "by writing small wrappers around the generic view"!
Thanks A LOT hugo! You've been a great help!
I'm going to look into the pagination thing later ;)
btw, I tracked down to the stuff/search/views/generic.py, seem that the
kwarg module_list hasn't been passed to the search() funtion from the
utils.py, so I have to set the SEARCH_DEFINITION in the settings.py to
get the searching work properly.
It won't work if I set the search_info_dict like
Guys, I created the range0 (0-index) and range1 (1-index filter
$ svn diff defaultfilters.py
Index: defaultfilters.py
===
--- defaultfilters.py (revision 1813)
+++ defaultfilters.py (working copy)
@@ -433,6 +433,14 @@
from
Hi limodou, could you pls be more specific? Thanks!
8 matches
Mail list logo