| Total Complexity | 1 |
| Total Lines | 10 |
| Duplicated Lines | 0 % |
| Coverage | 40% |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | 1 | from ..forms import LocalizedTextFieldForm |
|
| 5 | 1 | class LocalizedTextField(LocalizedCharField): |
|
| 6 | 1 | def formfield(self, **kwargs): |
|
| 7 | """Gets the form field associated with this field.""" |
||
| 8 | |||
| 9 | defaults = { |
||
| 10 | 'form_class': LocalizedTextFieldForm |
||
| 11 | } |
||
| 12 | |||
| 13 | defaults.update(kwargs) |
||
| 14 | return super().formfield(**defaults) |
||
| 15 |
Cyclic imports may cause partly loaded modules to be returned. This might lead to unexpected runtime behavior which is hard to debug.