mirror of
https://github.com/SectorLabs/django-localized-fields.git
synced 2025-04-25 11:42:54 +03:00
13 lines
368 B
Python
13 lines
368 B
Python
from ..forms import LocalizedTextFieldForm
|
|
from .char_field import LocalizedCharField
|
|
|
|
|
|
class LocalizedTextField(LocalizedCharField):
|
|
def formfield(self, **kwargs):
|
|
"""Gets the form field associated with this field."""
|
|
|
|
defaults = {"form_class": LocalizedTextFieldForm}
|
|
|
|
defaults.update(kwargs)
|
|
return super().formfield(**defaults)
|