Django admin: How to display a field that is marked as editable=False in the model?
Use <a href="http://docs.djangoproject.com/en/dev/ref/contrib/admin/#django.contrib.admin.ModelAdmin.readonly_fields">Readonly Fields</a>:
Example:
class MyModelAdmin(admin.ModelAdmin):
readonly_fields=('first',)
Written by Tim Kamanin
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Related Tags
#django
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#