| Total Complexity | 1 |
| Total Lines | 15 |
| Duplicated Lines | 0 % |
| Coverage | 40% |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | 1 | from django.core.checks import Warning |
|
| 3 | 1 | class AtomicSlugRetryMixin: |
|
| 4 | """A Mixin keeped for backwards compatibility""" |
||
| 5 | |||
| 6 | 1 | @classmethod |
|
| 7 | def check(cls, **kwargs): |
||
| 8 | errors = super().check(**kwargs) |
||
| 9 | errors.append( |
||
| 10 | Warning( |
||
| 11 | 'localized_fields.AtomicSlugRetryMixin is deprecated', |
||
| 12 | hint='There is no need to use ' |
||
| 13 | 'localized_fields.AtomicSlugRetryMixin', |
||
| 14 | obj=cls |
||
| 15 | ) |
||
| 16 | ) |
||
| 17 | return errors |
||
| 18 |
It is generally discouraged to redefine built-ins as this makes code very hard to read.