# In search result drop box: add given name next to username

**URL:** <https://meta.discourse.org/t/in-search-result-drop-box-add-given-name-next-to-username/48735>\
**Category:** UX\
**Created:** [2016 年8 月 17 日 13:07 UTC](https://meta.discourse.org/t/in-search-result-drop-box-add-given-name-next-to-username/48735 "2016-08-17T13:07:25Z")\
**Posts on this page:** 1\
**Showing post:** 28

<div class="post-metadata">

作者： ![fantasticfears](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fantasticfears/32/119608_2.png) [@fantasticfears](https://meta.discourse.org/u/fantasticfears)\
发布日期： [2017 年2 月 22 日 09:25 UTC](https://meta.discourse.org/t/in-search-result-drop-box-add-given-name-next-to-username/48735/28 "2017-02-22T09:25:43Z")

</div>

> [@designbygio](#):
>
> I’m try to understand where the attrs in widget are coming from..

Widgets in Discourse usually are mounted upon a component or directly by `{{mount-widget}}`. So the widget retrieves the model is as the same as how the component binds to the model.

Search results should come from `GroupedSearchResultsSerializer`. As @sam’s suggest, you can replace the `BasicUserSerializer` with a new one specified for the search as well as some cleanup for that `include_name?` probably.

---

_[View the full topic](https://meta.discourse.org/t/in-search-result-drop-box-add-given-name-next-to-username/48735)._
