Ticket #275 (closed defect: fixed)
Add forms renderer for JsonType fixing bugs in admin interface
Reported by: | rgrp | Owned by: | dread |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | ckan | Keywords: | cost-low |
Cc: | Repository: | ||
Theme: |
Description
This will solve e.g. issues in formalchemy admin interface (which is due to lack of renderer for Json type)
Cost: 0.5h
from ckan.model.types import JsonType forms.FieldSet.default_renderers[JsonType] = formalchemy.fields.TextFieldRenderer
Change History
comment:1 Changed 4 years ago by rgrp
- Keywords cost-low added
- Priority changed from minor to major
- Milestone set to v1.1
comment:2 follow-up: ↓ 5 Changed 4 years ago by rgrp
- Milestone v1.1 deleted
Also, now if you visit ckan.net/admin/Package get 500 error and following in logs:
[Mon Aug 02 08:17:35 2010] [error] [client 86.26.8.30] Error - <type 'exceptions.UnicodeEncodeError?'>: 'ascii' codec can't encode character u'
xf4' in position 988: ordinal not in range(128)
comment:5 in reply to: ↑ 2 Changed 4 years ago by pudo
Replying to rgrp:
Also, now if you visit ckan.net/admin/Package get 500 error and following in logs:
[Mon Aug 02 08:17:35 2010] [error] [client 86.26.8.30] Error - <type 'exceptions.UnicodeEncodeError?'>: 'ascii' codec can't encode character u'
xf4' in position 988: ordinal not in range(128)
Cannot reproduce this at the moment. Will wait for it to occur again and then create another ticket.