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
πŸ’¬ Discuss
βœ… Correct Answer: (A) editable=False
Explanation: Setting editable=False in the model field makes it uneditable in admin.
Explanation by: Mr. Dubey
Setting editable=False in the model field makes it uneditable in admin.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
95
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
86%
Success Rate