mirror of
				https://github.com/SectorLabs/django-localized-fields.git
				synced 2025-10-30 18:48:56 +03:00 
			
		
		
		
	Merge pull request #28 from MELScience/fix_imports_in_doc
fix imports in README
This commit is contained in:
		| @@ -254,8 +254,7 @@ Besides ``LocalizedField``, there's also: | |||||||
|  |  | ||||||
|            .. code-block:: python |            .. code-block:: python | ||||||
|  |  | ||||||
|               from localized_fields import (LocalizedCharField, |               from localized_fields.fields import LocalizedCharField, LocalizedTextField | ||||||
|                                             LocalizedTextField) |  | ||||||
|  |  | ||||||
|               class MyModel(models.Model): |               class MyModel(models.Model): | ||||||
|                    title = LocalizedCharField() |                    title = LocalizedCharField() | ||||||
| @@ -270,7 +269,7 @@ Besides ``LocalizedField``, there's also: | |||||||
|  |  | ||||||
|            .. code-block:: python |            .. code-block:: python | ||||||
|  |  | ||||||
|               from localized_fields import LocalizedFileField |               from localized_fields.fields import LocalizedFileField | ||||||
|  |  | ||||||
|               def my_directory_path(instance, filename, lang): |               def my_directory_path(instance, filename, lang): | ||||||
|                 # file will be uploaded to MEDIA_ROOT/<lang>/<id>_<filename> |                 # file will be uploaded to MEDIA_ROOT/<lang>/<id>_<filename> | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user