mirror of
				https://github.com/SectorLabs/django-localized-fields.git
				synced 2025-10-31 10:48:56 +03:00 
			
		
		
		
	
		
			
				
	
	
		
			15 lines
		
	
	
		
			390 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			390 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)
 |