Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a column on to the list display #480

Merged
merged 2 commits into from
Sep 25, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions orchestra/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,7 @@ class StaffingRequestInquiryAdmin(RelatedFieldAdmin, AjaxSelectAdmin):
})
list_display = (
'id', 'communication_preference__worker', 'communication_method',
'request__task',
Copy link
Member

Choose a reason for hiding this comment

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

I think that:

  • this should point to request, and
  • the string representation of request should be task - request.cause - request.status.

If we did that, the dropdown for selecting the appropriate request when you click on a specific inquiry would also be more informative.

'created_at',
)
search_fields = (
Expand Down