mirror of
https://github.com/SectorLabs/django-localized-fields.git
synced 2025-11-01 02:48:58 +03:00
Shorten names for everything
This commit is contained in:
14
localized_fields/fields/text_field.py
Normal file
14
localized_fields/fields/text_field.py
Normal file
@@ -0,0 +1,14 @@
|
||||
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)
|
||||
Reference in New Issue
Block a user