Skip to content

Commit

Permalink
Merge pull request #9 from agiliq/Chapter2_module1_edit01
Browse files Browse the repository at this point in the history
edited some text
  • Loading branch information
shabda committed Feb 23, 2018
2 parents 62839a4 + 0c1adee commit 9f9cc22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/calculated_fields.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ You can add two methods to your :code:`Origin` model like this::
def villain_count(self):
return self.villain_set.count()

And change :code"`list_display` to :code:`list_display = ("name", "hero_count", "villain_count")`.
And change :code:`list_display` to :code:`list_display = ("name", "hero_count", "villain_count")`.


Adding a method to the ModelAdmin
Expand Down

0 comments on commit 9f9cc22

Please sign in to comment.