I have been trying to create a custom field that allows the user to enter a flowrate and clean the data back to kg/s or mol/s.
I though I had everything sorted, when I type '10 tones/year', it correctly did the conversion however when I type something that does not validate such as 'twenty' or '5 mph' the code runs till the raise validation error, however nothing else happens and the overall forms clean function gets called (which doesn't have all the fields in its clean_data attribute. I have posted the code on dpaste, any hints or suggestions and would be greatly appreciated (this is hurting my head now) http://dpaste.com/120538/ Thanks Alistair http://www.thatscottishengineer.co.uk --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---