Merge pull request #258 from n1ncha/master

Update advanced.rst
fix_request_path_info
Diederik van der Boor 2017-02-03 21:49:02 +01:00 committed by GitHub
commit e28d7cb9f5
1 changed files with 2 additions and 1 deletions

View File

@ -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)