Skip to content

Commit 85ff958

Browse files
committed
correctness: Don't assign anonymous functions
1 parent b6b4b45 commit 85ff958

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

algoliasearch_django/models.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@
1111
from .settings import DEBUG
1212

1313
logger = logging.getLogger(__name__)
14-
_getattr = lambda object, name: getattr(object, name)
14+
15+
16+
def _getattr(obj, name):
17+
return getattr(obj, name)
1518

1619

1720
def check_and_get_attr(model, name):

0 commit comments

Comments
 (0)