Re: Not calling clean() properly

2010-09-14 Thread Christos Jonathan Hayward
Thank you. On Tue, Sep 14, 2010 at 3:01 AM, Daniel Roseman wrote: > On Sep 13, 10:50 pm, Christos Jonathan Hayward > wrote: > > Other attempts to write a clean that would run a print statement and then > > call to_python(), validate(), and run_validators() did not result in that > > print statem

Re: Not calling clean() properly

2010-09-14 Thread Daniel Roseman
On Sep 13, 10:50 pm, Christos Jonathan Hayward wrote: > Other attempts to write a clean that would run a print statement and then > call to_python(), validate(), and run_validators() did not result in that > print statement being called. > > Am I missing something about data being cleaned? The hoo

Re: Not calling clean() properly

2010-09-13 Thread Christos Jonathan Hayward
Other attempts to write a clean that would run a print statement and then call to_python(), validate(), and run_validators() did not result in that print statement being called. Am I missing something about data being cleaned? The hooks I've tried to override don't seem to be being called. On Mon

Not calling clean() properly

2010-09-13 Thread Christos Jonathan Hayward
I have a TextURLField defined below, and I am trying to get the clean() to prepend http:// to all entries that do not contain a ':'. In other words, if someone enters "google.com", I'd like to store "http://google.com";. Right now it appears not to be making any difference; if I enter an FQDN then