Kennedy Nayebare
Kennedy Nayebare

Reputation: 29

writing help texts with Django

How do i put help texts in a template so that with ease the user can input data in the right format? Say for example, a DateTimeField...how do I placed the format of the field e.g. (YYYY-MM-DD HH:MM:SS) without affecting the space for the default errorlist?

Upvotes: 0

Views: 48

Answers (1)

jpic
jpic

Reputation: 33420

You could specify the help_text of the form field, or specify the help_text of the model field. It should not affect error handling at all.

Upvotes: 1

Related Questions