Skip to content

Commit 482a1ec

Browse files
committed
Default promo configuration to use settings
Adds `USE_PROMOS` setting for defaulting if to show promos.
1 parent 1e3e990 commit 482a1ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

readthedocs/restapi/views/footer_views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def footer_html(request):
6464
else:
6565
print_url = None
6666

67-
show_promo = True
67+
show_promo = getattr(settings, 'USE_PROMOS', True)
6868
# User is a gold user, no promos for them!
6969
if request.user.is_authenticated():
7070
if request.user.gold.count() or request.user.goldonce.count():

0 commit comments

Comments
 (0)