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
  • 29,141
  • 56
  • 198
  • 299

1 Answers1

1

Add a readonly attribute in the widget attrs.

Tim Baxter
  • 46
  • 1
  • 3