Drag 'n Drop Inline Images Backend - View
Review Request #6616 — Created Nov. 21, 2014 and submitted
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.
Description | From | Last Updated |
---|---|---|
Since this is a "view", the view_ prefix seems superfluous - maybe just call this user_file_attachment. |
mike_conley | |
Isn't the user already available at request.user? |
mike_conley | |
We're using single quotes throughout the rest of this file - might as well stick with the convention. Same applies … |
mike_conley | |
Why the double $? |
mike_conley | |
Might as well just be "user-file-attachment" |
mike_conley | |
"URL", "UUID", and "a its" -> "its". |
chipx86 |
- Change Summary:
-
Updating description.
- Description:
-
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.
~ 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>/
-
Tool: Pyflakes Processed Files: reviewboard/attachments/evolutions/file_attachment_uuid.py reviewboard/attachments/evolutions/__init__.py reviewboard/attachments/views.py reviewboard/attachments/models.py reviewboard/urls.py Tool: PEP8 Style Checker Processed Files: reviewboard/attachments/evolutions/file_attachment_uuid.py reviewboard/attachments/evolutions/__init__.py reviewboard/attachments/views.py reviewboard/attachments/models.py reviewboard/urls.py
-
Tool: Pyflakes Processed Files: reviewboard/attachments/evolutions/file_attachment_uuid.py reviewboard/attachments/evolutions/__init__.py reviewboard/attachments/views.py reviewboard/attachments/models.py reviewboard/urls.py Tool: PEP8 Style Checker Processed Files: reviewboard/attachments/evolutions/file_attachment_uuid.py reviewboard/attachments/evolutions/__init__.py reviewboard/attachments/views.py reviewboard/attachments/models.py reviewboard/urls.py