We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d41d42f commit e764e25Copy full SHA for e764e25
geonode/maps/api/views.py
@@ -161,16 +161,6 @@ def perform_update(self, serializer):
161
subtype="tabular-collection" if tabular_collection else None,
162
)
163
instance = serializer.update(instance,serializer.validated_data)
164
- # for key, value in serializer.validated_data.items():
165
- # if hasattr(instance, key):
166
- # try:
167
- # instance.__setattr__(key, value)
168
- # except ValueError:
169
- # pass
170
- # else:
171
- # raise KeyError(key)
172
- # instance.save()
173
- # return instance
174
175
# thumbnail, events and resouce routines
176
self._post_change_routines(
0 commit comments