| Conditions | 1 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 1 |
| CRAP Score | 1.4218 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | 1 | from django.db import transaction |
|
| 6 | 1 | class AtomicSlugRetryMixin: |
|
| 7 | """Makes :see:LocalizedUniqueSlugField work by retrying upon |
||
| 8 | violation of the UNIQUE constraint.""" |
||
| 9 | |||
| 10 | 1 | def save(self, *args, **kwargs): |
|
| 11 | """Saves this model instance to the database.""" |
||
| 12 | |||
| 13 | 1 | max_retries = getattr( |
|
| 14 | settings, |
||
| 15 | 'LOCALIZED_FIELDS_MAX_RETRIES', |
||
| 16 | 100 |
||
| 17 | ) |
||
| 18 | |||
| 39 |
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.