Skip to content

Commit

Permalink
Merge pull request #11 from agiliq/Chapter7module4edit
Browse files Browse the repository at this point in the history
some missprint
  • Loading branch information
shabda committed Feb 23, 2018
2 parents 1ceedc4 + 4b9fc7d commit 984b13b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/uneditable_field.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
How to show an uneditable field in admin?
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

If you have a field with :code:`editable=False` in your model, that field, by default, is hiddent in the change page. This also happens with any field marked as :code;`auto_now` or :code:`auto_now_add`, because that sets the :code:`editable=False` on these fields.
If you have a field with :code:`editable=False` in your model, that field, by default, is hiddent in the change page. This also happens with any field marked as :code:`auto_now` or :code:`auto_now_add`, because that sets the :code:`editable=False` on these fields.

If you want these fields to show up on the change page, you can add them to :code:`readonly_fields`.::

Expand Down

0 comments on commit 984b13b

Please sign in to comment.