There are many posibilities: 1. Update the admin template for the app and model and include field variable into appropriate block 2. Update the form in admin and include the field with editable=false in widget properties 3. Update the view function and include a new value into template data
On 4. Dec., 14:56 h., grimmus <graham.col...@gmail.com> wrote: > Hi, > > I have a hit_count integer field on my model with a default value of 0 > > In the admin area i would like to show this field (to see the amount > of hits) but make it not editable. > > Is there any easy built in way to do this ? > > Thanks for any tips. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.