Skip to content

Commit

Permalink
Merge pull request #191 from PatDuJour/patch-1
Browse files Browse the repository at this point in the history
Add import statement
  • Loading branch information
aleontiev authored Aug 9, 2017
2 parents d564cd1 + 849a014 commit 50efbe6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/tutorial.rst
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,8 @@ DREST-ifying Existing Serializer
--------------------------------
As with ViewSets, there’s a mixin to DREST-ify an existing serializer. Same shenanigans warning applies as above::

from dynamic_rest.serializers import WithDynamicModelSerializerMixin

class NewFooSerializer(WithDynamicModelSerializerMixin, OldFooSerializer):
# Must override Meta class with DREST attributes
class Meta:
Expand Down

0 comments on commit 50efbe6

Please sign in to comment.