mirror of
				https://github.com/encode/django-rest-framework.git
				synced 2025-10-31 07:57:55 +03:00 
			
		
		
		
	Use smart_text() instead of nonexistant smart_unicode()
This commit is contained in:
		
							parent
							
								
									85faebbb75
								
							
						
					
					
						commit
						3691cd2ffd
					
				|  | @ -117,10 +117,10 @@ class Field(object): | |||
|         self.source = source | ||||
| 
 | ||||
|         if label is not None: | ||||
|             self.label = smart_unicode(label) | ||||
|             self.label = smart_text(label) | ||||
| 
 | ||||
|         if help_text is not None: | ||||
|             self.help_text = smart_unicode(help_text) | ||||
|             self.help_text = smart_text(help_text) | ||||
| 
 | ||||
|     def initialize(self, parent, field_name): | ||||
|         """ | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user