maxolasersquad / orthosie

Point of sale system written in Python
GNU General Public License v3.0
87 stars 49 forks source link

Specify Django REST Framework version in requeriments #35

Open melizeche opened 7 years ago

melizeche commented 7 years ago

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 commented 7 years ago

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

trantu commented 7 years ago

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