From d566fb4674a11fe5322432a4d0a78cc064912a77 Mon Sep 17 00:00:00 2001 From: Andreas Date: Wed, 30 Dec 2015 09:05:34 +0100 Subject: [PATCH] Mention pk_regex in docs when using non-int pk --- docs/admin.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/admin.rst b/docs/admin.rst index 7de30489..8e499c75 100644 --- a/docs/admin.rst +++ b/docs/admin.rst @@ -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 ----------------