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:
@@ -1,14 +1,13 @@
|
||||
from django.conf import settings
|
||||
from django.utils import translation
|
||||
|
||||
from psqlextra import expressions
|
||||
|
||||
|
||||
class LocalizedRef(expressions.HStoreRef):
|
||||
"""Expression that selects the value in a field only in
|
||||
the currently active language."""
|
||||
"""Expression that selects the value in a field only in the currently
|
||||
active language."""
|
||||
|
||||
def __init__(self, name: str, lang: str=None):
|
||||
def __init__(self, name: str, lang: str = None):
|
||||
"""Initializes a new instance of :see:LocalizedRef.
|
||||
|
||||
Arguments:
|
||||
|
||||
Reference in New Issue
Block a user