docs: add showfields import change

This commit is contained in:
Diederik van der Boor
2015-12-28 14:50:37 +01:00
parent 7b4939bb3f
commit f656ec438e
+1 -1
View File
@@ -202,7 +202,7 @@ 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 import PolymorphicModel, ShowFieldType
from polymorphic.showfields import PolymorphicModel, ShowFieldType
class ModelA(ShowFieldType, PolymorphicModel):
field1 = models.CharField(max_length=10)