The docs for newforms say how to override a field if you wish: http://www.djangoproject.com/documentation/newforms/#overriding-the-default-field-types
> For example, if you wanted to use MyDateFormField for any DateField > field on the model, you could define the callback: > > >>> def my_callback(field, **kwargs): > ... if isinstance(field, models.DateField): > ... return MyDateFormField(**kwargs) > ... else: > ... return field.formfield(**kwargs) > > >>> ArticleForm = form_for_model(formfield_callback=my_callback) > > Note that your callback needs to handle all possible model field > types, not just the ones that you want to behave differently to the > default. That's why this example has an else clause that implements > the default behavior. But what if I only want to override the appointment field in my model with a form field that limits people to choosing weekdays, but leave the birth_date field as a normal DateField? Any way to do that? Todd --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---