Customize Messages view in admin.py for the Admin interface.
Messages appear as a list of individual records, indentified by the string created with the Message's model __str__() method which is the identifier, and linked to detailed views/forms for editing. Fields in the detailed Messages view/form appear listed in the same order as defined in the model.
__str__()
For the Messages list view, we could display the sender_name, receipient_name, status and identifier. For the Messages list filter we could include status and maybe sender_approved_public and receipient_approved_public fields. For the Messages detailed view we could organize the fields in sections for: - Sender, - Receiver, - Message, - Status and the identifier, and maybe organize some Boolean fields (ie. Sender named, Sender approved public, Sender approved public named, ...) horizontally.
This would make it easier to approve new Messages.
Metadata Update from @jflory7: - Issue priority set to: waiting on assignee (was: awaiting triage) - Issue tagged with: PASSED, difficulty - medium, good first issue, help wanted, improvement, type - frontend
Metadata Update from @jflory7: - Custom field Requirement # adjusted to 10
Metadata Update from @shraddhaag: - Issue assigned to shraddhaag
I have filed PR #240 addressing this issue. @jflory7 Please let me know if the categorisation makes sense or if I need to modify it.
Super work on this one @shraddhaag! :raised_hands: Closing as complete.
I wanted to show off the difference and how easier it is to read the admin portal from your PR:
Before:
<img alt="Screenshot of admin Messages view with message ID string as only value shown" src="/fedora-commops/fedora-happiness-packets/issue/raw/files/d697fab1b04e1c34936433b08f45f92ee558c005846357753b18f7f3105ae794-Screenshot_2019-06-05_Select_message_to_change_Django_site_admin.png" />
After:
<img alt="Screenshot of admin Messages view with multiple pieces of information shown" src="/fedora-commops/fedora-happiness-packets/issue/raw/files/113d9ee37c66b86432dfb7db16aec8046c482ed3ad8a1411bf53da09511d2c76-Screenshot_2019-06-05_Select_message_to_change_Django_site_admin1.png" />
<img alt="Screenshot of editing a specific message without categories" src="/fedora-commops/fedora-happiness-packets/issue/raw/files/b870488c45d28457a06ce3ce18fc8559de1dea2221eb475985fb23fb48286edd-Screenshot_2019-06-05_Change_message_Django_site_admin.png" />
<img alt="Screenshot of editing a specific message with categories" src="/fedora-commops/fedora-happiness-packets/issue/raw/files/d9899678f861baa49c1c1ce8de2d97ceaeaf8241bf4b32f987b3e3ef630e19d6-Screenshot_2019-06-05_Change_message_Django_site_admin1.png" />
Metadata Update from @jflory7: - Issue close_status updated to: complete - Issue status updated to: Closed (was: Open)
Metadata Update from @jflory7: - Issue set to the milestone: Summer Coding 2019: phase 1
Metadata Update from @jflory7: - Custom field Requirement # reset (from 10)
Login to comment on this ticket.