| Conditions | 1 |
| Total Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | from django.conf import settings |
||
| 11 | def __init__(self, name: str, lang: str=None): |
||
| 12 | """Initializes a new instance of :see:LocalizedRef. |
||
| 13 | |||
| 14 | Arguments: |
||
| 15 | name: |
||
| 16 | The field/column to select from. |
||
| 17 | |||
| 18 | lang: |
||
| 19 | The language to get the field/column in. |
||
| 20 | If not specified, the currently active language |
||
| 21 | is used. |
||
| 22 | """ |
||
| 23 | |||
| 24 | language = lang or translation.get_language() or settings.LANGUAGE_CODE |
||
| 25 | super().__init__(name, language) |
||
| 26 |
This can be caused by one of the following:
1. Missing Dependencies
This error could indicate a configuration issue of Pylint. Make sure that your libraries are available by adding the necessary commands.
2. Missing __init__.py files
This error could also result from missing
__init__.pyfiles in your module folders. Make sure that you place one file in each sub-folder.