newforms' form_for_model ignores validator_list of model fields

2007-01-30 Thread Martin Winkler
Hi all, the newforms library looks very useful to me, but today I encountered a quite annoying issue. I usually have my validators in the model (e.g. django.core.validators.RequiredIfOtherFieldNotGiven appended to a field's validator_list), but this is not honored by the newforms library when I

Re: Changing django.contrib.auth to make passwords optional

2007-05-11 Thread Martin Winkler
> Certainly Oracle treats them empty string as equal to NULL. But does > that mean you can't put an empty string in a "not NULL" column in > Oracle? Exactly. If you want to insert something meaningless into a column that has a NOT NULL constraint in oracle, then you have to put at least one space

Custom ordering using SQL backend

2012-12-11 Thread Martin Winkler
Hi all, I recently solved a problem with a field that could not be ordered as I wanted. It was a CharField containing of exactly seven numbers like 990, 010, 120 etc. The first two digits indicated a year (99 being 1999 and 12 being 2012). The ordering should be different from usual

newforms captcha field

2007-05-27 Thread Martin Winkler
Hi all, I'd be interested in creating a newforms captcha field - did someone already create something like that? Is there general interest in this kind of stuff? Would there be any chance in putting into trunk when there are code, tests and documentation? I am already aware of the pycaptcha mod

Re: newforms captcha field

2007-05-29 Thread Martin Winkler
Thanks "itsnotvalid" and SmileyChris for your replys. Unfortunately "reCAPTCHA" does not fulfil my needs, because it has an english-only interface, and just english words - at least for the time being. I think, I'll have to do my own approach: * A directory containing small images for backgroun

Re: MEDIA_URL and trailing slash (documentation)

2007-09-22 Thread Martin Winkler
Am Fri, 21 Sep 2007 20:25:09 - schrieb SmileyChris <[EMAIL PROTECTED]>: > > Currently the docs [1] say "Note that this should have a trailing > slash if it has a path component." Since Django uses urlparse.urljoin for concatenating, you can omit the trailing slash, if - and only if - the M

Re: MEDIA_URL and trailing slash (documentation)

2007-09-22 Thread Martin Winkler
Sorry, please ignore my previous post. I did not understand what you really meant. :-/ SmileyChris wrote: >> Common use is now href="{{ MEDIA_URL }}images/a.png" >> so it seems to me like you should *always* put a trailing slash in I'm very much +1 on this too. It makes a lot of sense to always