Skip to content

CST-75 znick#379: Add 'edit message' feature#388

Draft
mikhailyumanov wants to merge 13 commits intomasterfrom
edit_message
Draft

CST-75 znick#379: Add 'edit message' feature#388
mikhailyumanov wants to merge 13 commits intomasterfrom
edit_message

Conversation

@mikhailyumanov
Copy link
Collaborator

No description provided.

self.assertTrue(self.s3_storage.exists(file.file.name))
self.assertEqual(expected_stdout, out.getvalue().strip())

def test_rewrite_url_only_existing_many_refs(self):
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Выглядит как будто бы это что-то про S3 :)

Comment on lines +270 to +283

# If event_id in POST, edit message and redirect back
if 'event_id' in request.POST and request.POST['event_id'].isdigit():
user = request.user
event_id = int(request.POST['event_id'])
event = get_object_or_404(Event, id=event_id)
if event.author != user:
raise PermissionDenied
event.value = request.POST['comment']
event.save()
print(event.value)
print(request.POST)
return HttpResponsePermanentRedirect("/issue/" + request.POST['issue_id'])

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Это классно, но нужно все таки сохранять всю историю сообщений.

@znick
Copy link
Owner

znick commented May 15, 2021

А тут ведь нет просмотра истории?

@mikhailyumanov
Copy link
Collaborator Author

А тут ведь нет просмотра истории?

В процессе

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants