0

I have a form field (dropdown) that I don't want users to edit, but only see its value as a label or text.

It simply looks like this:

{{ form.activity }}

How can I accomplish this?

Atma
  • 27,485
  • 52
  • 188
  • 288

1 Answers1

1

Add a readonly attribute in the widget attrs.

Tim Baxter
  • 46
  • 1
  • 3