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