Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PersonEditView validation error can result in HTTP 500 #216

Closed
praseodym opened this issue Nov 9, 2018 · 1 comment
Closed

PersonEditView validation error can result in HTTP 500 #216

praseodym opened this issue Nov 9, 2018 · 1 comment
Labels

Comments

@praseodym
Copy link
Member

praseodym commented Nov 9, 2018

Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/django/core/handlers/base.py", line 124, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/usr/local/lib/python3.7/contextlib.py", line 74, in inner
    return func(*args, **kwds)
  File "/usr/local/lib/python3.7/site-packages/django/views/generic/base.py", line 68, in view
    return self.dispatch(request, *args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/django/views/generic/base.py", line 88, in dispatch
    return handler(request, *args, **kwargs)
  File "/srv/ldb/views.py", line 166, in post
    return self.forms_valid(forms)
  File "/srv/ldb/views.py", line 177, in forms_valid
    obj = form.save(commit=False)
  File "/usr/local/lib/python3.7/site-packages/django/forms/models.py", line 453, in save
    'created' if self.instance._state.adding else 'changed',
ValueError: The CommitteeMembership could not be changed because the data didn't validate.

Datadog trace

@praseodym praseodym added the bug label Nov 9, 2018
@praseodym
Copy link
Member Author

This seems to happen when the deletion checkbox is checked, i.e. this is a duplicate of #113.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant