mirror of
https://github.com/SectorLabs/django-localized-fields.git
synced 2025-12-14 07:42:24 +03:00
Re-format all files
This commit is contained in:
@@ -15,10 +15,7 @@ def get_language_codes() -> List[str]:
|
||||
in your project.
|
||||
"""
|
||||
|
||||
return [
|
||||
lang_code
|
||||
for lang_code, _ in settings.LANGUAGES
|
||||
]
|
||||
return [lang_code for lang_code, _ in settings.LANGUAGES]
|
||||
|
||||
|
||||
def resolve_object_property(obj, path: str):
|
||||
@@ -38,7 +35,7 @@ def resolve_object_property(obj, path: str):
|
||||
"""
|
||||
|
||||
value = obj
|
||||
for path_part in path.split('.'):
|
||||
for path_part in path.split("."):
|
||||
value = getattr(value, path_part)
|
||||
|
||||
return value
|
||||
|
||||
Reference in New Issue
Block a user