Skip to content

Commit

Permalink
Merge pull request #190 from amuttsch/amuttsch-doc-pk-regex
Browse files Browse the repository at this point in the history
Mention pk_regex in docs when using non-int pk
  • Loading branch information
vdboor committed Jan 3, 2016
2 parents f10b5d2 + d566fb4 commit 5c4ee74
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/admin.rst
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ the performance hit of retrieving child models.
This can be controlled by setting the ``polymorphic_list`` property on the
parent admin. Setting it to True will provide child models to the list template.

Note: If you are using non-integer primary keys in your model, you have to edit ``pk_regex``,
for example ``pk_regex = '([\w-]+)'`` if you use UUIDs. Otherwise you cannot change model entries.

The child models
----------------

Expand Down

0 comments on commit 5c4ee74

Please sign in to comment.