allegro / allegro/ralph

Change Password throwing Error :

Aberta
#3,651 0 comentários 0 reações 0 responsáveis Ver no GitHub
Linguagem predominante
Python
Estrelas
2.5k
Forks
593
Merge médio
2d 9h
PRs com merge (30d)
6

Descrição

### System
django-reversion==1.9.1
Django==1.8.19
djangorestframework==3.2.2
djangorestframework_xml==1.2.0

### Steps to reproduce

1) got to URL/users/123/password
2) Enter password
3) submit

### Expected behavior

Password should be changed

### Actual behavior
`
[13:25:07] ERROR Internal Server Error: /accounts/ralphuser/2/password/

Traceback (most recent call last):

File "/Users/vaibhavmathur/Paytm_Project/venv/ralph/lib/python3.8/site-packages/django/core/handlers/base.py", line 132, in get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/contextlib.py", line 75, in inner
return func(*args, **kwds)
File "/Users/vaibhavmathur/Paytm_Project/venv/ralph/lib/python3.8/site-packages/django/utils/decorators.py", line 110, in _wrapped_view
response = view_func(request, *args, **kwargs)
File "/Users/vaibhavmathur/Paytm_Project/venv/ralph/lib/python3.8/site-packages/django/views/decorators/cache.py", line 57, in _wrapped_view_func
response = view_func(request, *args, **kwargs)
File "/Users/vaibhavmathur/Paytm_Project/venv/ralph/lib/python3.8/site-packages/django/contrib/admin/sites.py", line 233, in inner
return view(request, *args, **kwargs)
File "/Users/vaibhavmathur/Paytm_Project/cmdb/paytm-cmdb/src/ralph/accounts/admin.py", line 302, in user_change_password
return super().user_change_password(request, id, form_url)
File "/Users/vaibhavmathur/Paytm_Project/venv/ralph/lib/python3.8/site-packages/django/utils/decorators.py", line 34, in _wrapper
return bound_func(*args, **kwargs)
File "/Users/vaibhavmathur/Paytm_Project/venv/ralph/lib/python3.8/site-packages/django/views/decorators/debug.py", line 76, in sensitive_post_parameters_wrapper
return view(request, *args, **kwargs)
File "/Users/vaibhavmathur/Paytm_Project/venv/ralph/lib/python3.8/site-packages/django/utils/decorators.py", line 30, in bound_func
return func.__get__(self, type(self))(*args2, **kwargs2)
File "/Users/vaibhavmathur/Paytm_Project/venv/ralph/lib/python3.8/site-packages/django/contrib/auth/admin.py", line 138, in user_change_password
self.log_change(request, user, change_message)
File "/Users/vaibhavmathur/Paytm_Project/venv/ralph/lib/python3.8/site-packages/reversion/admin.py", line 97, in log_change
self.revision_context_manager.set_comment(message)
File "/Users/vaibhavmathur/Paytm_Project/venv/ralph/lib/python3.8/site-packages/reversion/revisions.py", line 237, in set_comment
self._assert_active()

File "/Users/vaibhavmathur/Paytm_Project/venv/ralph/lib/python3.8/site-packages/reversion/revisions.py", line 168, in _assert_active

raise RevisionManagementError("There is no active revision for this thread")

reversion.revisions.RevisionManagementError: There is no active revision for this thread

`

Guia de contribuição

Abrir o guia de contribuição

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.