|
Re: clean_<fieldname>() doesn't handle images?: msg#02284DjangoUsers
On Fri, Jul 31, 2009 at 3:18 AM, Martje <martijn.bastiaan@xxxxxxxxx> wrote:
You added a custom field clean method to your model definition. This has no effect, as models (currently) don't support validation or cleaning. Validation/cleaning is done for forms, so you need to add your custom field clean method to the form used to upload your file. Admin supports this by allowing you to specify the form it is to use for a model: http://docs.djangoproject.com/en/dev/ref/contrib/admin/#adding-custom-validation-to-the-admin Karen
--~--~---------~--~----~------------~-------~--~----~ 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@xxxxxxxxxxxxxxxx To unsubscribe from this group, send email to django-users+unsubscribe@xxxxxxxxxxxxxxxx For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---
|
|
||||||||||||||||||||||||||
|
|
|
| News | Mail Home | sitemap | FAQ | advertise |