Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specify Django REST Framework version in requeriments #35

Open
melizeche opened this issue Mar 7, 2017 · 2 comments
Open

Specify Django REST Framework version in requeriments #35

melizeche opened this issue Mar 7, 2017 · 2 comments

Comments

@melizeche
Copy link

DRF is a library in constant development and every version have changes and deprecations in the API, right now with the last current version(3.5.4) from pipy I'm getting a lot of errors like
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 ItemSerializer serializer.",)
Maybe it's DRF, maybe it's other thing but I think the DRF version need to be set to one that we can be sure works with the project.
Thanks

@maxolasersquad
Copy link
Owner

I concur. I will look into this when I have the time.

@trantu
Copy link

trantu commented Mar 8, 2017

@melizeche : if you add fields = '__all__' to class Meta: of those ModelSerializer then you don't get this error

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

No branches or pull requests

3 participants