From fb10deaa8c0ed2dd5762e2116fcdad1cfdf7f9a4 Mon Sep 17 00:00:00 2001 From: n1ncha Date: Wed, 18 Jan 2017 11:32:26 -0500 Subject: [PATCH] Update advanced.rst fixed import for ShowFieldType --- docs/advanced.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/advanced.rst b/docs/advanced.rst index c9fcac4..bcffe50 100644 --- a/docs/advanced.rst +++ b/docs/advanced.rst @@ -203,7 +203,8 @@ Nicely Displaying Polymorphic Querysets In order to get the output as seen in all examples here, you need to use the :class:`~polymorphic.showfields.ShowFieldType` class mixin:: - from polymorphic.showfields import PolymorphicModel, ShowFieldType + from polymorphic.models import PolymorphicModel + from polymorphic.showfields import ShowFieldType class ModelA(ShowFieldType, PolymorphicModel): field1 = models.CharField(max_length=10)