Skip to content

Commit

Permalink
docs: add showfields import change
Browse files Browse the repository at this point in the history
  • Loading branch information
vdboor committed Dec 28, 2015
1 parent 7b4939b commit f656ec4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/advanced.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f656ec4

Please sign in to comment.