Skip to content

Commit 3075030

Browse files
Merge pull request #567 from alan-turing-institute/fix_nplusone
fix nplusone whitelist
2 parents 4afef0c + bb00c69 commit 3075030

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

server/settings/environments/development.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ def _custom_show_toolbar(request):
117117
NPLUSONE_LOG_LEVEL = logging.WARN
118118
NPLUSONE_WHITELIST = [
119119
{'model': 'admin.*'},
120+
{'label': 'n_plus_one', 'model': 'users.UserProfile'}
120121
]
121122

122123

0 commit comments

Comments
 (0)