| Conditions | 2 | 
| Total Lines | 10 | 
| Code Lines | 4 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | # -*- coding: utf-8 -*- | ||
| 15 | def set(self, object, value): | ||
| 16 | """Set field value | ||
| 17 | |||
| 18 | :param object: the instance of the field | ||
| 19 | :param value: value to set | ||
| 20 | """ | ||
| 21 | # always ensure unicode | ||
| 22 | if isinstance(value, str): | ||
| 23 | value = api.safe_unicode(value) | ||
| 24 | super(RichTextField, self).set(object, value) | ||
| 25 | |||
| 39 |