dev login page: Add all non-zulip users as community users.

We create a new realm and user when running populate_analytics_db.py, in a
realm that is neither 'zulip' nor 'simple'.
This commit is contained in:
Rishi Gupta 2017-02-01 15:31:22 -08:00 committed by Tim Abbott
parent b7df84d5a8
commit 92e8cad42a
1 changed files with 1 additions and 1 deletions

View File

@ -347,7 +347,7 @@ def login_page(request, **kwargs):
if not u.is_realm_admin and u.realm.string_id == 'zulip']
extra_context['community_users'] = [
u.email for u in users
if u.realm.string_id == 'simple']
if u.realm.string_id != 'zulip']
template_response = django_login_page(
request, authentication_form=OurAuthenticationForm,
extra_context=extra_context, **kwargs)