| Total Lines | 17 |
| Duplicated Lines | 0 % |
| Coverage | 57.14% |
| Changes | 5 | ||
| Bugs | 0 | Features | 0 |
| 1 | 1 | from django.db import models |
|
| 5 | 1 | class LocalizedModel(models.Model): |
|
| 6 | """A model keeped for backwards compatibility""" |
||
| 7 | |||
| 8 | 1 | @classmethod |
|
| 9 | def check(cls, **kwargs): |
||
| 10 | errors = super().check(**kwargs) |
||
| 11 | errors.append( |
||
| 12 | Warning( |
||
| 13 | 'localized_fields.LocalizedModel is deprecated', |
||
| 14 | hint='There is no need to use localized_fields.LocalizedModel', |
||
| 15 | obj=cls |
||
| 16 | ) |
||
| 17 | ) |
||
| 18 | return errors |
||
| 19 | |||
| 20 | 1 | class Meta: |
|
| 21 | abstract = True |
||
| 22 |
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.