You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unfortunatelly i have no time to fix this myself at the moment and make a pull request. Maybe i can do it another time. I am adding it as an issue anyway in case i forget about it.
The text was updated successfully, but these errors were encountered:
allynt
added a commit
to allynt/django-rest-framework-gis
that referenced
this issue
Aug 12, 2019
ValueError: list.remove(x): x not in list
The newest version of django-rest-framework handles the fields attribute differently
https://github.com/encode/django-rest-framework/blob/master/rest_framework/serializers.py#L352
It now returns a new copy of the field dict with every call, causing problems in the django-rest-framework-gis code at
https://github.com/djangonauts/django-rest-framework-gis/blob/master/rest_framework_gis/serializers.py#L107
when trying to remove the id field from the list. Python does not recognize that the value is in list because it is a different object (successive calls of the fields property)
Unfortunatelly i have no time to fix this myself at the moment and make a pull request. Maybe i can do it another time. I am adding it as an issue anyway in case i forget about it.
The text was updated successfully, but these errors were encountered: