Skip to content

Commit

Permalink
Merge pull request #12 from agiliq/Chapter7module5edit
Browse files Browse the repository at this point in the history
misprint of a word
  • Loading branch information
shabda committed Feb 23, 2018
2 parents 984b13b + 153c5cc commit 8a74bf9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/uneditable_existing.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
How to make a field editable while creating, but read only in existing objects?
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

YOu need to make the :code:`name` and :code:`category` read only once a :code:`Hero` is created. However duing the first write the fields needs to be editable.
You need to make the :code:`name` and :code:`category` read only once a :code:`Hero` is created. However duing the first write the fields needs to be editable.

You can do this by overriding :code:`get_readonly_fields` method, like this::

Expand Down

0 comments on commit 8a74bf9

Please sign in to comment.