0001-api-include-display_-id-name-in-basic-list-results-3.patch
tests/test_api.py | ||
---|---|---|
2804 | 2804 |
'/api/cards/test/list?NameID=%s' % |
2805 | 2805 |
local_user.name_identifiers[0])) |
2806 | 2806 |
assert len(resp.json['data']) == 1 |
2807 |
assert resp.json['data'][0]['display_id'] == formdata.get_display_id() |
|
2808 |
assert resp.json['data'][0]['display_name'] == formdata.get_display_name() |
|
2807 | 2809 |
resp = get_app(pub).get(sign_uri( |
2808 | 2810 |
'/api/cards/test/list?NameID=%s&full=on' % |
2809 | 2811 |
local_user.name_identifiers[0])) |
wcs/backoffice/management.py | ||
---|---|---|
1846 | 1846 |
for filled in items] |
1847 | 1847 |
else: |
1848 | 1848 |
output = [{'id': filled.id, |
1849 |
'display_id': filled.get_display_id(), |
|
1850 |
'display_name': filled.get_display_name(), |
|
1849 | 1851 |
'url': filled.get_url(), |
1850 | 1852 |
'receipt_time': datetime.datetime(*filled.receipt_time[:6]), |
1851 | 1853 |
'last_update_time': datetime.datetime(*filled.last_update_time[:6]), |
1852 |
- |