mirror of
https://github.com/SectorLabs/django-localized-fields.git
synced 2025-04-25 03:32:55 +03:00
22 lines
548 B
Python
22 lines
548 B
Python
from django.db import models
|
|
from django.core.checks import Warning
|
|
|
|
|
|
class LocalizedModel(models.Model):
|
|
"""A model keeped for backwards compatibility"""
|
|
|
|
@classmethod
|
|
def check(cls, **kwargs):
|
|
errors = super().check(**kwargs)
|
|
errors.append(
|
|
Warning(
|
|
'localized_fields.LocalizedModel is deprecated',
|
|
hint='There is no need to use localized_fields.LocalizedModel',
|
|
obj=cls
|
|
)
|
|
)
|
|
return errors
|
|
|
|
class Meta:
|
|
abstract = True
|