Conditions | 1 |
Total Lines | 8 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | # -*- coding: utf-8 -*- |
||
26 | @indexer(IOrganisation) |
||
27 | def title(instance): |
||
28 | """Organisation objects does not use the built-in title, rather it uses |
||
29 | Name schema field. We need this type-specific index to simulate the default |
||
30 | behavior for index `title` |
||
31 | """ |
||
32 | name = getattr(instance, "Name", None) |
||
33 | return name or "" |
||
34 |