Drag 'n Drop Inline Images Backend - View
Review Request #6616 — Created Nov. 21, 2014 and submitted — Latest diff uploaded
Part of a set of changes to add support for dragging and dropping images into the markdown editor.
Adding a view that redirects to a FileAttachment's file. Adding a uuid field to the FileAttachment model, to be used by the view as non-guessable identifier for the FileAttachment.
This view can be accessed at the following url: /users/<username>/file-attachments/<uuid>/
All unit tests pass after making the changes.
Did some manual testing to make sure the view properly redirects to the file, and the file can be viewed.
Diff Revision 1
This is not the most recent revision of the diff. The latest diff is revision 3. See what's changed.
orig
1
2
3
| reviewboard/urls.py |
|---|
| reviewboard/attachments/models.py |
|---|
| reviewboard/attachments/views.py |
|---|
| reviewboard/attachments/evolutions/__init__.py |
|---|
| reviewboard/attachments/evolutions/file_attachment_uuid.py |
|---|