A

Admin • 802.91K Points
Coach

Q. How do you prevent a model field from being editable in Django admin?

  • (A) editable=False
  • (B) readonly=True
  • (C) disabled=True
  • (D) hide=True
  • Correct Answer - Option(A)
  • Views: 7
  • Filed under category Django
  • Hashtags:

Explanation by: Admin
Setting editable=False in the model field makes it uneditable in admin.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.