mirror of
https://github.com/SectorLabs/django-localized-fields.git
synced 2025-04-25 11:42:54 +03:00
Updated documentation regarding .get()
This commit is contained in:
parent
98cc4c08d1
commit
6c17eec48f
@ -128,7 +128,7 @@ Or get it in a specific language:
|
|||||||
|
|
||||||
print(new.title.get('en')) # prints 'english title'
|
print(new.title.get('en')) # prints 'english title'
|
||||||
print(new.title.get('ro')) # prints 'romanian title'
|
print(new.title.get('ro')) # prints 'romanian title'
|
||||||
print(new.title.get()) # whatever language is the currently active one
|
print(new.title.get()) # whatever language is the primary one
|
||||||
|
|
||||||
You can also explicitly set a value in a certain language:
|
You can also explicitly set a value in a certain language:
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user