Created
June 23, 2017 23:58
-
-
Save xordoquy/933b0592f3cb22daf97dbb7a1c0356d8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>> from invoices.api.serializers import User | |
>>> u = User(many=True) | |
>>> print(u.parent) | |
None | |
>>> type(u.child.parent) | |
<class 'rest_framework.serializers.ListSerializer'> | |
>>> u2 = User() | |
>>> print(u2.parent) | |
None | |
>>> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment