Skip to content

Explicit fields attribute __all__ for django-rest-framework 3.3.0#22

Open
davidp94 wants to merge 2 commits intorobinhood:masterfrom
davidp94:master
Open

Explicit fields attribute __all__ for django-rest-framework 3.3.0#22
davidp94 wants to merge 2 commits intorobinhood:masterfrom
davidp94:master

Conversation

@davidp94
Copy link
Copy Markdown

AssertionError: ("Creating a ModelSerializer without either the 'fields' attribute or the 'exclude' attribute has been deprecated since 3.3.0, and is now disallowed. Add an explicit fields = 'all' to the MultiFactorAuthSerializer serializer.",)

davidp94 added 2 commits July 13, 2018 14:59
Since django-rest-framework 3.3.0
```AssertionError: ("Creating a ModelSerializer without either the 'fields' attribute or the 'exclude' attribute has been deprecated since 3.3.0, and is now disallowed. Add an explicit fields = 'all' to the MultiFactorAuthSerializer serializer.",)```
This explicit changes would remove this error.
Explicit '__all__' for `MultiFactorAuthSerializer`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant