mirror of
https://github.com/zulip/zulip.git
synced 2025-11-01 20:44:04 +00:00
realm: Rename plan type constants to be more descriptive.
It is confusing to have the plan type constants not be namespaced by the thing they represent. We already have a namespacing convention in place for constants, so we should use it for Realm.plan_type as well.
This commit is contained in:
@@ -7,7 +7,7 @@ from zerver.models import Realm
|
||||
|
||||
|
||||
def get_realm_logo_source(realm: Realm, night: bool) -> str:
|
||||
if realm.plan_type == Realm.LIMITED:
|
||||
if realm.plan_type == Realm.PLAN_TYPE_LIMITED:
|
||||
return Realm.LOGO_DEFAULT
|
||||
if night:
|
||||
return realm.night_logo_source
|
||||
|
||||
Reference in New Issue
Block a user