models: Rename Realm.restricted_to_domain field.

This renames Realm.restricted_to_domain field to
emails_restricted_to_domains, for greater clarity as to what it does
just from seeing the setting name, without having to look it up.

Fixes part of #10042.
This commit is contained in:
Roman Godov
2018-07-28 00:26:29 +03:00
committed by Tim Abbott
parent 28d04f6960
commit c0806917ec
16 changed files with 82 additions and 62 deletions

View File

@@ -170,7 +170,7 @@ boolean field, `mandatory_topics`, to the Realm model in
class Realm(models.Model):
# ...
restricted_to_domain = models.BooleanField(default=True) # type: bool
emails_restricted_to_domains = models.BooleanField(default=True) # type: bool
invite_required = models.BooleanField(default=False) # type: bool
+ mandatory_topics = models.BooleanField(default=False) # type: bool
```
@@ -498,7 +498,7 @@ function _setup_page() {
var options = {
realm_name: page_params.realm_name,
realm_description: page_params.realm_description,
realm_restricted_to_domain: page_params.realm_restricted_to_domain,
realm_emails_restricted_to_domains: page_params.realm_emails_restricted_to_domains,
realm_invite_required: page_params.realm_invite_required,
// ...
+ realm_mandatory_topics: page_params.mandatory_topics,