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
After commit 5cb3a5b (fixing #48) I get the following internal server error when posting forms:
Traceback (most recent call last):
File "/usr/local/lib/python3.3/dist-packages/django/core/handlers/base.py", line 114, in get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/usr/local/lib/python3.3/dist-packages/django/views/generic/base.py", line 69, in view
return self.dispatch(request, *args, **kwargs)
File "/usr/local/lib/python3.3/dist-packages/django/utils/decorators.py", line 29, in _wrapper
return bound_func(*args, **kwargs)
File "/usr/local/lib/python3.3/dist-packages/django/contrib/auth/decorators.py", line 25, in _wrapped_view
return view_func(request, *args, **kwargs)
File "/usr/local/lib/python3.3/dist-packages/django/utils/decorators.py", line 25, in bound_func
return func(self, *args2, **kwargs2)
File "/opt/myproject/django/www/views.py", line 426, in dispatch
return super().dispatch(*args, **kwargs)
File "/usr/local/lib/python3.3/dist-packages/django/views/generic/base.py", line 87, in dispatch
return handler(request, *args, **kwargs)
File "/usr/local/lib/python3.3/dist-packages/django/views/generic/edit.py", line 228, in post
return super(BaseUpdateView, self).post(request, *args, **kwargs)
File "/usr/local/lib/python3.3/dist-packages/django/views/generic/edit.py", line 170, in post
if form.is_valid():
File "/usr/local/lib/python3.3/dist-packages/django/forms/forms.py", line 129, in is_valid
return self.is_bound and not bool(self.errors)
File "/usr/local/lib/python3.3/dist-packages/django/forms/forms.py", line 121, in errors
self.full_clean()
File "/usr/local/lib/python3.3/dist-packages/django/forms/forms.py", line 275, in full_clean
self._post_clean()
File "/usr/local/lib/python3.3/dist-packages/mongodbforms-0.2.2-py3.3.egg/mongodbforms/documents.py", line 396, in _post_clean
f.name not in self.instance._changed_fields:
AttributeError: 'Book' object has no attribute '_changed_fields'
So I'm sticking to fb57c72 and everything is fine with this old one.
The text was updated successfully, but these errors were encountered:
Did you change anything on the document? I think that's the only thing I didn't really test. It should handle the missing attribute gracefully now though and completely fall back to the old behaviour.
After commit 5cb3a5b (fixing #48) I get the following internal server error when posting forms:
So I'm sticking to fb57c72 and everything is fine with this old one.
The text was updated successfully, but these errors were encountered: