Alex Gaynor 12/28/2008

Building a Read Only Field in Django

Read Original

This technical article explains how to create a read-only field for Django forms and the admin interface. It provides a step-by-step guide, including code examples for a custom ReadOnlyField subclass and a ReadOnlyWidget, to display non-editable data. The author notes this is a workaround for a feature not natively supported at the time (2008) and discusses its limitations.

Building a Read Only Field in Django

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week