Currently the [AuthProvider]() model, given that is is never user-facing, does not have any fields that capture a label or name specifically for display to an end-user, e.g. within the Admin. So the default is a Django constructed named based on the class and ID:
We do have the field client_name that could be used, which distinguishes each AuthProvider in the configuration and for the IdG. This field is currently marked as Read: Transit Agency in the admin config guide, which is the most open read permission (i.e. any user that can log in to the admin can read this field).
Expected behavior
[x] When viewing the list of AuthProvider in the Admin, the client_name field is used for the link text
[x] When viewing an individual AuthProvider in the Admin, the client_name field is used wherever the object name is displayed (e.g. in the page title, the admin breadcrumb, the main content pane)
Additional context
The super simple way to do this is to implement the __str__ method on the model class, to return the text of the label you want it to use (in this case, client_name). This is how other model classes implement their labels, e.g. PemData and TransitAgency
Currently the [
AuthProvider
]() model, given that is is never user-facing, does not have any fields that capture a label or name specifically for display to an end-user, e.g. within the Admin. So the default is a Django constructed named based on the class and ID:We do have the field
client_name
that could be used, which distinguishes eachAuthProvider
in the configuration and for the IdG. This field is currently marked asRead: Transit Agency
in the admin config guide, which is the most open read permission (i.e. any user that can log in to the admin can read this field).Expected behavior
AuthProvider
in the Admin, theclient_name
field is used for the link textAuthProvider
in the Admin, theclient_name
field is used wherever the object name is displayed (e.g. in the page title, the admin breadcrumb, the main content pane)Additional context
The super simple way to do this is to implement the
__str__
method on the model class, to return the text of the label you want it to use (in this case,client_name
). This is how other model classes implement their labels, e.g.PemData
andTransitAgency