diff --git a/mo/web/org_users.py b/mo/web/org_users.py
index 09b301f4463f4a56307ef6a8db33d4691b8a2f77..59c7993bd35260b4e66e6c465c96eccded6a5aa2 100644
--- a/mo/web/org_users.py
+++ b/mo/web/org_users.py
@@ -56,7 +56,7 @@ def org_users():
         participant_filter = participant_filter.filter_by(year=filter.year.data)
         participant_filter_apply = True
     if filter.school_code.data:
-        place = db.place_by_code(filter.school_code.data)
+        place = db.get_place_by_code(filter.school_code.data)
         if place:
             participant_filter = participant_filter.filter_by(school=place.place_id)
             participant_filter_apply = True
@@ -84,7 +84,7 @@ def org_users():
         contest_filter = contest_filter.filter(db.Contest.round_id.in_(round_filter))
         contest_filter_apply = True
     if filter.contest_site_code.data:
-        place = db.place_by_code(filter.contest_site_code.data)
+        place = db.get_place_by_code(filter.contest_site_code.data)
         if place:
             contest_filter = contest_filter.filter_by(place_id=place.place_id)
             contest_filter_apply = True