orthosie icon indicating copy to clipboard operation
orthosie copied to clipboard

Specify Django REST Framework version in requeriments

Open melizeche opened this issue 7 years ago • 2 comments

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

melizeche avatar Mar 07 '17 03:03 melizeche

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

maxolasersquad avatar Mar 08 '17 05:03 maxolasersquad

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

trantu avatar Mar 08 '17 16:03 trantu