Possible Duplicate:
In a django form, How to make a field readonly (or disabled) so that it cannot be edited?
I am making a production server in django admin where I have an integerfield
available = models.IntegerField(blank=True, help_text="(updated on save)")
I was wondering if I could make this a readonly field that wont be edited by the user but by the program such that on save a calculation is made for available(this code has been written already). All I want to know is how I can make this integerfield readonly and editable but only by the program on save?
Thank you