##// END OF EJS Templates
autocomplete: improve the lookup of value_display by re-using the object....
marcink -
r1091:c9d29b6e default
parent child Browse files
Show More
@@ -148,6 +148,7 b' class RepoModel(BaseModel):'
148 148 qualified=True)
149 149
150 150 def get_users(self, name_contains=None, limit=20, only_active=True):
151
151 152 # TODO: mikhail: move this method to the UserModel.
152 153 query = self.sa.query(User)
153 154 if only_active:
@@ -171,8 +172,9 b' class RepoModel(BaseModel):'
171 172 'first_name': user.name,
172 173 'last_name': user.lastname,
173 174 'username': user.username,
175 'email': user.email,
174 176 'icon_link': h.gravatar_url(user.email, 30),
175 'value_display': h.person(user.email),
177 'value_display': h.person(user),
176 178 'value': user.username,
177 179 'value_type': 'user',
178 180 'active': user.active,
General Comments 0
You need to be logged in to leave comments. Login now